Problem:
foreman-installer is not honouring additional parameters for the DHCP puppet module used by the installer when set in custom hiera configuring a DHCP server on the foreman node. Specifically dhcp::dnsdomain
Expected outcome:
pass custom parameters from dhcp::dnsdomain set in custom hiera into foreman-dhcp puppet module used by foreman-installer to configure dhcp server as part of foreman install process.
Foreman and Proxy versions:
Foreman and Proxy plugin versions:
3.X
Distribution and version:
RHEL 9.4 / Rocky 9.4 (Assume all EL9)
Other relevant data:
setting forward and reverse domain names in custom-hiera as part of foreman installer as so
dhcp::dnsdomain:
- forwardlocal.com
- 100.168.192.in-addr.arpa
should configure a forward and reverse domain name in the dhcpd.conf file on the foreman node post install for DDNS updates, referencing other parameters that are honoured in custom-hiera. eg:
zone forwardlocal.com {
primary 192.168.100.1;
key DDNS_UPDATE;
}
zone 100.168.192.in-addr.arpa. {
primary 192.168.100.1;
key DDNS_UPDATE;
}
These entries are missing.
There is also a conflict as part of the install process where faster is overriding custom-hiera parameters,
eg: the dhcp.conf post install looks like this.
ddns-domainname "local";
ddns-rev-domainname "100.168.192.in-addr.arpa";
zone local. {
primary 192.168.100.1;
key no-dns-ddns-key;
}
in this example, facter is setting the zone ‘local’ despite custom-hiera specifying forward local.com and the reverse dns zone is totally missing.
If I pass in these parameters to the foreman-dhcp module outside of foreman-installer using a default common.yaml hiera file
dhcp::dnsdomain:
- forwardlocal.com
- 12.24.172.in-addr.arpa
the dhcpd.conf is mostly correctly set (facter is still overriding one parameters ddns-domainname) but the rest are correctly set and no parameters are missing, so foreman installer is not passing in these parameters correctly.
ddns-domainname "local";
ddns-rev-domainname "12.24.172.in-addr.arpa";
# Key from bind
include "/etc/bind/keys.d/test.key";
zone forwardlocal.com. {
primary 10.0.1.20;
key no-dns-ddns-key;
}
zone 12.24.172.in-addr.arpa. {
primary 10.0.1.20;
key no-dns-ddns-key;
}