Project

General

Profile

Actions

Bug #6910

closed

"ddns-update-style none;" set by foreman-installer while manual states "ddns-update-style interim;"

Added by Jorick Astrego almost 10 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

foreman-installer sets "ddns-update-style none;", while the manual (http://www.theforeman.org/manuals/1.5/index.html#4.3.3ISCDHCP) states "ddns-update-style interim;"

Even when already configured it gets overwritten

[ WARN 2014-08-04 12:48:27 main] /Stage[main]/Dhcp/File[/etc/dhcp]/mode: mode changed '0750' to '0755'
[ INFO 2014-08-04 12:48:27 main] RESOURCE File[/etc/dhcp]
[DEBUG 2014-08-04 12:48:27 main] /Stage[main]/Dhcp/File[/etc/dhcp]: The container Class[Dhcp] will propagate my refresh event
[DEBUG 2014-08-04 12:48:27 main] Executing 'diff -u /etc/dhcp/dhcpd.conf /tmp/puppet-file20140804-3766-91otdm-0'
[ WARN 2014-08-04 12:48:27 main] /Stage[main]/Dhcp/File[/etc/dhcp/dhcpd.conf]/content:
[ INFO 2014-08-04 12:48:27 main] --- /etc/dhcp/dhcpd.conf 2013-11-22 15:30:00.000000000 +0100
[ INFO 2014-08-04 12:48:27 main] +++ /tmp/puppet-file20140804-3766-91otdm-0 2014-08-04 12:48:27.236000034 +0200
[ INFO 2014-08-04 12:48:27 main]
@ -1,5 +1,39 @
[ INFO 2014-08-04 12:48:27 main] -#
[ INFO 2014-08-04 12:48:27 main] -# DHCP Server Configuration file.
[ INFO 2014-08-04 12:48:27 main] -# see /usr/share/doc/dhcp*/dhcpd.conf.sample
[ INFO 2014-08-04 12:48:27 main] -# see 'man 5 dhcpd.conf'
[ INFO 2014-08-04 12:48:27 main] -#
[ INFO 2014-08-04 12:48:27 main] +# dhcpd.conf
[ INFO 2014-08-04 12:48:27 main] +omapi-port 7911;
[ INFO 2014-08-04 12:48:27 main] +
[ INFO 2014-08-04 12:48:27 main] +default-lease-time 600;
[ INFO 2014-08-04 12:48:27 main] +max-lease-time 7200;
[ INFO 2014-08-04 12:48:27 main] +
[ INFO 2014-08-04 12:48:27 main] +
[ INFO 2014-08-04 12:48:27 main] +ddns-update-style none;*
[ INFO 2014-08-04 12:48:27 main] +
[ INFO 2014-08-04 12:48:27 main] +option domain-name "test.nu";
[ INFO 2014-08-04 12:48:27 main] +option domain-name-servers **.***.***.**;
[ INFO 2014-08-04 12:48:27 main] +
[ INFO 2014-08-04 12:48:27 main] +allow booting;
[ INFO 2014-08-04 12:48:27 main] +allow bootp;

Actions #1

Updated by Dominic Cleal almost 10 years ago

  • Project changed from Packaging to Installer
  • Category set to Foreman modules

It's not really relevant for Foreman, but sure, we could have it parameterised.

Actions #2

Updated by Jorick Astrego almost 10 years ago

If it's not relevant for foreman why does the installer overwrite this parameter in the dhcpd.conf or why put it in the manual differently.

I know it says example but it's hard enough to set everything correct on the parameters that are relevant ;-)

Actions #3

Updated by Dominic Cleal almost 10 years ago

The installer is Puppet based and simply templates the whole file.

https://github.com/theforeman/puppet-dhcp/blob/master/templates/dhcpd.conf.erb#L7 seems it already is parameterised in that module, but https://github.com/theforeman/puppet-foreman_proxy/blob/master/manifests/proxydhcp.pp#L20 doesn't use it or the $foreman_proxy::dhcp_key_name parameter.

Actions #4

Updated by Ewoud Kohl van Wijngaarden over 3 years ago

  • Status changed from New to Resolved

It is possible to set dhcp::dnsupdatekey via custom-hiera.yaml. Given its age I'm going to close this.

Actions

Also available in: Atom PDF