From 98407bfa96e8600d82abf24ef95d91a6ff911c4d Mon Sep 17 00:00:00 2001 From: Cédric Jeanneret Date: Fri, 5 Nov 2010 14:47:31 +0100 Subject: (dhcp::server and associated erb) updated documentation and template --- templates/dhcpd.conf.debian.erb | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'templates') diff --git a/templates/dhcpd.conf.debian.erb b/templates/dhcpd.conf.debian.erb index 8cd3183..7606c0c 100644 --- a/templates/dhcpd.conf.debian.erb +++ b/templates/dhcpd.conf.debian.erb @@ -10,13 +10,6 @@ ddns-update-style <%=dhcpd_ddns_update%>; ddns-update-style none; <% end -%> -# option definitions common to all supported networks... -option domain-name "<%=dhcpd_domain_name%>"; -option domain-name-servers <%=dhcpd_dns_servers%>; - -default-lease-time 600; -max-lease-time 7200; - # If this DHCP server is the official DHCP server for the local # network, the authoritative directive should be uncommented. <% if has_variable?('dhcpd_authoritative') -%> @@ -25,6 +18,10 @@ authoritative; #authoritative; <% end -%> +<% if dhcpd_opts and not dhcpd_opts.empty? -%> +<%= dhcpd_opts.collect! {|i| "#{i}" }.join(";\n") %> +<% end -%> + # Use this to send dhcp log messages to a different log file (you also # have to hack syslog.conf to complete the redirection). log-facility local7; -- cgit v1.2.3