dhcpd: Add extra hosts from LDAP to config
This commit is contained in:
parent
ad81c46228
commit
4b4ba7a814
2 changed files with 12 additions and 0 deletions
|
@ -65,3 +65,11 @@ host {{ hostname }} {
|
|||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% for host in ldap_hosts.results %}
|
||||
host {{ host['cn'] }} {
|
||||
option host-name "{{ host['cn'] }}";
|
||||
hardware ethernet {{ host['macAddress'] }};
|
||||
fixed-address {{ host['ipHostNumber'] }};
|
||||
}
|
||||
{% endfor %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue