From 0b5505e611e65a6dac1fb91dda7bc1067db75417 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Mon, 8 Apr 2019 12:19:41 +0100 Subject: [PATCH] dhcp: Only use first ntp server in DHCP replies --- cookbooks/dhcpd/templates/default/dhcpd.conf.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -%> -- 2.39.5