dhcpd: Add extra hosts from LDAP to config

This commit is contained in:
Timo Makinen 2025-06-22 14:22:47 +00:00
parent ad81c46228
commit 4b4ba7a814
2 changed files with 12 additions and 0 deletions

View file

@ -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 %}