summaryrefslogtreecommitdiff
path: root/roles/install_dhcp/templates/dhcpd.conf.j2
blob: 80ab8adaeae3997055051be0459b50a65e65fd61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
default-lease-time 600;
max-lease-time 900;

authoritative;

log-facility local7;

{% for site in sites %}
subnet {{ site.dhcp_subnet }} netmask {{ site.dhcp_netmask }} {
	range {{ site.dhcp_start }} {{ site.dhcp_end }};

	option routers {{ site.bat_ipv4 }};
	option domain-name-servers {{ site.bat_ipv4 }};
}
{% endfor %}

subnet {{ ansible_default_ipv4['address'] }} netmask 255.255.255.255 {
}

#include "/etc/dhcpd.hosts.conf";