Fixes around dhcpd

This commit is contained in:
Gregory Kurtzer
2020-12-01 15:58:06 -08:00
parent bc2bee9cf0
commit e227e130fb
4 changed files with 12 additions and 4 deletions

View File

@@ -35,6 +35,6 @@ if exists user-class and option user-class = "iPXE" {
subnet {{$.Network}} netmask {{$.Netmask}} {
range {{$.RangeStart}} {{$.RangeEnd}};
next-server 192.168.1.1;
next-server {{$.Ipaddr}};
}

View File

@@ -34,6 +34,10 @@ if exists user-class and option user-class = "iPXE" {
}
subnet {{$.Network}} netmask {{$.Netmask}} {
next-server {{$.Ipaddr}};
}
{{- range $nodes := .Nodes}}
host {{$.Fqdn}} {
hardware ethernet {{$nodes.NetDevs.eth0.Hwaddr}}

View File

@@ -19,9 +19,9 @@ control:
range end: 192.168.1.250
assign static: false
config file: /etc/dhcp/dhcpd.conf
start command: service dhcp start
restart command: killall dhcpd -HUP
enable command: chkconfig dhcp on
start command: systemctl start dhcpd
restart command: systemctl restart dhcpd
enable command: systemctl enable dhcpd
tftp:
enabled: true
tftproot: /var/lib/tftproot