commit | f4fe8032a5b37ff1ff7dbe7427ba4c66f5eec1b2 | [log] [tgz] |
---|---|---|
author | jan kaufman <jan.kaufman@tcpcloud.eu> | Tue Feb 16 12:14:17 2016 +0100 |
committer | jan kaufman <jan.kaufman@tcpcloud.eu> | Tue Feb 16 12:14:17 2016 +0100 |
tree | 55cf2019bd4b2891b94110bd3f9733153fbd8d5c | |
parent | 15c39d4a8529d7f16ead018c3c6b8b4aa594b536 [diff] [blame] |
config dhcp hosts only when hosts are defined
diff --git a/isc_dhcp/files/dhcpd.hosts b/isc_dhcp/files/dhcpd.hosts index 359e5b1..8a4292f 100644 --- a/isc_dhcp/files/dhcpd.hosts +++ b/isc_dhcp/files/dhcpd.hosts
@@ -1,5 +1,6 @@ {%- from "isc_dhcp/map.jinja" import server with context %} +{%- if server.host is defined %} {%- for host_name, host in server.host.iteritems() %} host {{ host_name }} { @@ -11,3 +12,5 @@ } {%- endfor %} +{%- endif %} +