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