dhcpd: Use more dynamic default dhcpd config
This commit is contained in:
parent
69b102f708
commit
4cf472f524
1 changed files with 6 additions and 6 deletions
|
@ -35,15 +35,15 @@ class "PXEClient" {
|
|||
}
|
||||
}
|
||||
|
||||
subnet 172.20.20.0 netmask 255.255.252.0 {
|
||||
subnet {{ intnet_prefix }}.0 netmask {{ intnet_netmask }} {
|
||||
default-lease-time 86400;
|
||||
max-lease-time 604800;
|
||||
option subnet-mask 255.255.252.0;
|
||||
option broadcast-address 172.20.23.255;
|
||||
option routers 172.20.20.1;
|
||||
option subnet-mask {{ intnet_netmask }};
|
||||
#option broadcast-address 172.20.23.255;
|
||||
option routers {{ intnet_prefix }}.1;
|
||||
|
||||
option domain-name "home.foo.sh";
|
||||
option domain-name-servers 172.20.20.10, 172.20.20.11, 172.20.20.12;
|
||||
option domain-name "{{ inventory_hostname.split('.')[1] }}.foo.sh";
|
||||
option domain-name-servers {{ intnet_prefix }}.10, {{ intnet_prefix }}.11, {{ intnet_prefix }}.12;
|
||||
use-host-decl-names on;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue