aboutsummaryrefslogtreecommitdiff
path: root/templates/dhcpd.conf.debian.erb
blob: 8cd31833851be1d32f6cdc5ebf781474482e5f13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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_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;