voxpupuli / puppet-dhcp

Puppet module for deploying dhcp
https://forge.puppet.com/puppet/dhcp
Apache License 2.0
41 stars 136 forks source link

Centos 7 Failover fails #136

Open ppouliot opened 7 years ago

ppouliot commented 7 years ago

Affected Puppet, Ruby, OS and module versions/distributions

How to reproduce (e.g Puppet code you use)

  class { 'dhcp':
    dnsdomain   => hiera('dhcp::dnsdomain'),
    nameservers => hiera('dhcp::nameservers'),
    ntpservers  => hiera('dhcp::ntpservers'),
    interfaces  => hiera('dhcp::interfaces'),
#   dnsupdatekey => "/etc/bind/bind.keys.d/${ddnskey}.key",
#   require      => Dns::Key[$ddnskey],
  }
  if ($ipam::dhcp_use_failover) {
    class {'dhcp::failover':
      role         => hiera('dhcp::failover::role'),
      peer_address => hiera('dhcp::failover::peer_address'),
    }

What are you seeing

Failover configuration fails do to "port" statement in template.

What behaviour did you expect instead

Failover configuration functioned properly when using centos 6. It appears changes between centos 6 and centos 7 regarding to dhcpd cause this module to when configuring failover on centos 7. Commenting out the port statement in the templates/dhcpd.conf.failover.erb file resolves the issue.

Output log

Any additional information you'd like to impart

petems commented 7 years ago

Can you post the actual error that comes up?