commit | bba61ceceb56827cba780cc329ef88a75db663df | [log] [tgz] |
---|---|---|
author | jan kaufman <jan.kaufman@tcpcloud.eu> | Tue Mar 08 18:37:22 2016 +0100 |
committer | jan kaufman <jan.kaufman@tcpcloud.eu> | Tue Mar 08 18:37:22 2016 +0100 |
tree | 5dfff88c5a81adff2e0681654800c8d03522b588 | |
parent | cb5d834571ea862ed1ecf7367376b4f6e493b650 [diff] |
configure name_servers only if defined
diff --git a/isc_dhcp/files/dhcpd.conf b/isc_dhcp/files/dhcpd.conf index d0f93d2..61419f7 100644 --- a/isc_dhcp/files/dhcpd.conf +++ b/isc_dhcp/files/dhcpd.conf
@@ -74,8 +74,9 @@ {%- endif %} option domain-name "{{ server.domain_name }}"; +{%- if server.name_servers is defined %} option domain-name-servers {{ server.name_servers|join( ', ') }}; - +{%- endif %} allow booting; allow bootp;