blob: 8a4292fdc6934e5279cad9943149860032aef2ef [file] [log] [blame]
Ales Komarek6d9bc2c2014-09-21 17:25:05 +02001{%- from "isc_dhcp/map.jinja" import server with context %}
2
jan kaufmanf4fe8032016-02-16 12:14:17 +01003{%- if server.host is defined %}
Ales Komarek6d9bc2c2014-09-21 17:25:05 +02004{%- for host_name, host in server.host.iteritems() %}
5
6host {{ host_name }} {
7 hardware ethernet {{ host.mac }};
8 fixed-address {{ host.address }};
Ales Komarek9b602932014-09-21 17:45:06 +02009 {%- if host.hostname is defined %}
Ales Komarek6d9bc2c2014-09-21 17:25:05 +020010 ddns-hostname "{{ host.hostname }}";
Ales Komarek9b602932014-09-21 17:45:06 +020011 {%- endif %}
Ales Komarek6d9bc2c2014-09-21 17:25:05 +020012}
13
14{%- endfor %}
jan kaufmanf4fe8032016-02-16 12:14:17 +010015{%- endif %}
16