Configuration - Host Templates
These config-files simply hold the same kind of lines as a
host config-file. By adding a line like:
template some-host-template
to a host config-file, you achieve the same effect as adding all
the lines contained within the template file. If you have many
hosts which are similar, this can be a usefull way of keeping the
configuration consistent.
It can also be used to parameterize things. As an example, if you
are using the nt-status-server and are only running it on a single
host which is providing information on various other NT hosts, you
might make a template, say default-nt-status-server
like:
nt-status-server my.nt.status.server
and replace the nt-status-server
lines in those hosts with:
template default-nt-status-server
Then if you want to change which machine is running the nt-status-server
,
you'd just have to change the template.
[