Node Director
iscdhcp Template
Domain Templates

SYNOPSIS

Template ......... ISC DHCP Config [iscdhcp]
DHCP Config File . /etc/dhcp3/dhcpd.conf
Restrict to one class . on
Host class ....... Server
Reload command ... /etc/init.d/dhcpd restart

DESCRIPTION

The "ISC DHCP Config" domain template allows writing host information out into a ISC DHCP (www.isc.org) compatible dhcpd.conf file. The dhcpd.conf file must exist prior to using this domain template and it should contain a section surrounded by markers like i.e.:

subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.10;
option broadcast-address 192.168.1.255;
option nis-servers 192.168.1.1, 192.168.1.2;
range 192.168.1.200 192.168.1.230;
}
##BEGIN director maintained section
# This section will be replaced by the Director
##END director maintained section

The Director will insert host information into the marked section (##BEGIN ... ##END).

OPTIONS

The template understands the following configuration options:

DHCP Config File

The file name and path of the dhcpd.conf config file.

Restrict to one class (ClassOnly)

If set, then only hosts that are in the appropriate class will be included.

Host class (SelectClass)

Only effective if "Restrict to one class" is set. It then specifies the host class.

Reload Command (ReloadCommand)

The shell command to be executed on the target server after the dhcpd.conf file file has been updated. If empty, some more or less generic default is being used.