From: Grant Slater Date: Mon, 8 Apr 2019 11:19:41 +0000 (+0100) Subject: dhcp: Only use first ntp server in DHCP replies X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/0b5505e611e65a6dac1fb91dda7bc1067db75417?ds=inline dhcp: Only use first ntp server in DHCP replies --- diff --git a/cookbooks/dhcpd/templates/default/dhcpd.conf.erb b/cookbooks/dhcpd/templates/default/dhcpd.conf.erb index e826c7efc..596b62ebf 100644 --- a/cookbooks/dhcpd/templates/default/dhcpd.conf.erb +++ b/cookbooks/dhcpd/templates/default/dhcpd.conf.erb @@ -7,11 +7,11 @@ max-lease-time 7200; subnet <%= interface[:network] %> netmask <%= interface[:netmask] %> { authoritative; range dynamic-bootp <%= node[:dhcpd][:first_address] %> <%= node[:dhcpd][:last_address] %>; -# option broadcast-address <%= interface[:broadcast] %>; + # option broadcast-address <%= interface[:broadcast] %>; option routers <%= interface[:gateway] %>; option domain-name "<%= @domain %>"; option domain-name-servers <%= interface[:gateway] %>; - option ntp-servers <%= node[:ntp][:servers].join(", ") %>; + option ntp-servers <%= node[:ntp][:servers].first %>; } <% end -%>