Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions templates/etc_dhcp_dhcpd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ key omapi_key {
secret "{{ dhcp_global_omapi_secret }}";
};
{% endif %}
{% if dhcp_global_ddns_updates is defined %}
ddns-updates {{ dhcp_global_ddns_updates }};
{% endif %}
{% if dhcp_global_ddns_update_style is defined %}
ddns-update-style {{ dhcp_global_ddns_update_style }};
{% endif %}
{% if dhcp_global_ignore is defined %}
ignore {{ dhcp_global_ignore }};
{% endif %}
{% if dhcp_global_update_static_leases is defined %}
update-static-leases {{ dhcp_global_update_static_leases }};
{% endif %}
{% if dhcp_global_authoritative is defined %}
{{ dhcp_global_authoritative }};
{% endif %}
Expand Down Expand Up @@ -234,6 +246,12 @@ subnet {{ subnet.ip }} netmask {{ subnet.netmask }} {
{% if subnet.booting is defined %}
{{ subnet.booting }} booting;
{% endif %}
{% if subnet.ddns_domainname is defined %}
ddns-domainname "{{ subnet.ddns_domainname }}";
{% endif %}
{% if subnet.ddns_rev_domainname is defined %}
ddns-rev-domainname "{{ subnet.ddns_rev_domainname }}";
{% endif %}
{% if subnet.options is defined %}
{% for opt in subnet.options %}
option {{ opt }} {{ subnet.options[opt] }};
Expand Down Expand Up @@ -304,7 +322,24 @@ host {{ host.name | replace (" ","_") | replace ("'","_") | replace (":","_") }}
{% if host.hostname is defined %}
option host-name "{{ host.hostname }}";
{% endif %}
{% if host.ddns_hostname is defined %}
ddns-hostname "{{ host.ddns_hostname }}";
{% endif %}

}
{% endfor %}
{% endif %}
{% if dhcp_dns_zones is defined %}

#
# DNS zone declarations
#
{% for zone in dhcp_dns_zones %}
zone {{ zone.name }} {
primary {{ zone.primary }};
key {{ zone.key }};
}

{% endfor %}
{% endif %}
{% if dhcp_pxeboot_server is defined %}
Expand Down