Skip to content

Commit 26bb382

Browse files
authored
Merge pull request #62 from ekacnet/feat_add_ddns_options
feat: allow additional ddns-* options
2 parents eacba9b + f2eec02 commit 26bb382

26 files changed

+36
-0
lines changed

dhcpd/defaults.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ dhcpd:
3535
ldap_tls_ciphers: ''
3636
ldap_tls_randfile: ''
3737
ddns_update_style: ''
38+
ddns_rev_domainname: ''
3839
ddns_domainname: ''
3940
update_static_leases: false
4041
authoritative: false

dhcpd/files/dhcpd.conf

+4
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ ddns-update-style {{ dhcpd.ddns_update_style }};
139139
#ddns-update-style none;
140140
{%- endif %}
141141

142+
{%- if dhcpd.ddns_rev_domainname %}
143+
ddns-rev-domainname "{{ dhcpd.ddns_rev_domainname }}";
144+
{%- endif %}
145+
142146
{%- if dhcpd.ddns_domainname %}
143147
ddns-domainname "{{ dhcpd.ddns_domainname }}";
144148
{%- endif %}

dhcpd/files/host.jinja

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ host {{ host }} {
2525
{%- if 'hardware' in config %}
2626
hardware {{ config.hardware }};
2727
{%- endif %}
28+
{%- if 'ddns_hostname' in config %}
29+
ddns-hostname "{{ config.ddns_hostname }}";
30+
{%- endif %}
2831
{%- if 'fixed_address' in config %}
2932
fixed-address {{ config.fixed_address }};
3033
{%- endif %}

dhcpd/files/subnet.jinja

+6
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ subnet {{ subnet }} netmask {{ config.netmask }} {
4141
{%- if 'domain_name' in config %}
4242
option domain-name "{{ config['domain_name'] }}";
4343
{%- endif %}
44+
{%- if 'ddns_rev_domainname' in config %}
45+
ddns-rev-domainname "{{ config['ddns_rev_domainname'] }}";
46+
{%- endif %}
47+
{%- if 'ddns_domainname' in config %}
48+
ddns-domainname "{{ config['ddns_domainname'] }}";
49+
{%- endif %}
4450
{%- if 'domain_search' in config %}
4551
option domain-search "{{ config['domain_search']|join('","') }}";
4652
{%- endif %}

test/integration/default/files/_mapdata/amazonlinux-1.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/amazonlinux-2.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/arch-base-latest.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/centos-7.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/centos-8.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/debian-10.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/debian-11.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/debian-9.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/fedora-31.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/fedora-32.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/fedora-33.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/fedora-34.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/fedora-35.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/fedora-36.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/gentoo-2-sysd.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/gentoo-2-sysv.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/opensuse-15.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/oraclelinux-7.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/ubuntu-16.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/ubuntu-18.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/ubuntu-20.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

test/integration/default/files/_mapdata/ubuntu-22.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ values:
2323
code: 252
2424
type: string
2525
ddns_domainname: ''
26+
ddns_rev_domainname: ''
2627
ddns_update_style: ''
2728
default_lease_time: 600
2829
deny: unknown-clients

0 commit comments

Comments
 (0)