Hi,
please find a patch attached, which adds recursive add/update/delete on templated items.
This allows one to have ie.
Template.basicHost
Template.Unix
Template.FreeBSD
Hosts.myhost
where myhost is linked to FreeBsd, which is linked to Unix, which is linked to basicHost
and have changes in basicHost replicated all the way down to myhost.
AWARE: the patch does not have any functionality for detection of endless recursion (ie. if FreeBSD would be linked to Unix and myhost, the script would go into an endless loop - i think
)
Alexei, can this functionality be included into the main source?
Also, can you think of anything else, which I have forgotten
please find a patch attached, which adds recursive add/update/delete on templated items.
This allows one to have ie.
Template.basicHost
Template.Unix
Template.FreeBSD
Hosts.myhost
where myhost is linked to FreeBsd, which is linked to Unix, which is linked to basicHost
and have changes in basicHost replicated all the way down to myhost.
AWARE: the patch does not have any functionality for detection of endless recursion (ie. if FreeBSD would be linked to Unix and myhost, the script would go into an endless loop - i think
)Alexei, can this functionality be included into the main source?
Also, can you think of anything else, which I have forgotten
Comment