aboutsummaryrefslogtreecommitdiff
path: root/templates/dhcpd.conf.debian.erb
diff options
context:
space:
mode:
authorCédric Jeanneret <cedric.jeanneret@camptocamp.com>2010-11-04 14:12:39 +0100
committerCédric Jeanneret <cedric.jeanneret@camptocamp.com>2010-11-04 14:12:39 +0100
commitbff43add032deea4b335836ef105958a7e7d6659 (patch)
treec00593576616efa505a84ae0371a91e9835a3004 /templates/dhcpd.conf.debian.erb
parent68b0642c21a598b6f5aecfedd38cc1584737fbec (diff)
downloadpuppet-dhcp-bff43add032deea4b335836ef105958a7e7d6659.tar.gz
puppet-dhcp-bff43add032deea4b335836ef105958a7e7d6659.tar.bz2
We do not need a special conf for squeeze/lenny
Diffstat (limited to 'templates/dhcpd.conf.debian.erb')
-rw-r--r--templates/dhcpd.conf.debian.erb31
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/dhcpd.conf.debian.erb b/templates/dhcpd.conf.debian.erb
new file mode 100644
index 0000000..865c04c
--- /dev/null
+++ b/templates/dhcpd.conf.debian.erb
@@ -0,0 +1,31 @@
+# File managed by puppet
+
+# The ddns-updates-style parameter controls whether or not the server will
+# attempt to do a DNS update when a lease is confirmed. We default to the
+# behavior of the version 2 packages ('none', since DHCP v2 didn't
+# have support for DDNS.)
+<% if has_variable?('dhcpd_ddns_update') -%>
+ddns-update-style <%=dhcpd_ddns_update%>;
+<% else -%>
+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_ddns_authoritative') -%>
+authoritative;
+<% else -%>
+#authoritative;
+<% 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;
+