Ales Komarek | 6d9bc2c | 2014-09-21 17:25:05 +0200 | [diff] [blame] | 1 | {%- from "isc_dhcp/map.jinja" import server with context %} |
| 2 | |
| 3 | {%- for host_name, host in server.host.iteritems() %} |
| 4 | |
| 5 | host {{ host_name }} { |
| 6 | hardware ethernet {{ host.mac }}; |
| 7 | fixed-address {{ host.address }}; |
Ales Komarek | 9b60293 | 2014-09-21 17:45:06 +0200 | [diff] [blame^] | 8 | {%- if host.hostname is defined %} |
Ales Komarek | 6d9bc2c | 2014-09-21 17:25:05 +0200 | [diff] [blame] | 9 | ddns-hostname "{{ host.hostname }}"; |
Ales Komarek | 9b60293 | 2014-09-21 17:45:06 +0200 | [diff] [blame^] | 10 | {%- endif %} |
Ales Komarek | 6d9bc2c | 2014-09-21 17:25:05 +0200 | [diff] [blame] | 11 | } |
| 12 | |
| 13 | {%- endfor %} |