(I posted this yesterday, but for some reason it never showed up)...
First off, master & agent are Debian Linux boxes running Wheezy (Debian 7.4).
Puppet Master and Agent are V3.4.3
So here's the deal.. I'm trying to install PowerDNS recursor on my agent
with a custom configure file (/etc/powerdns/recursor.conf). All of that
works, but what is happening is:
1. The package is installed...
2. The service is started...
3. The configuration is updated..
4. The service is NOT restarted..
So pdns-recursor is running with the old configuration.
Here is my setup on my master:
package { 'pdns-recursor':
ensure => installed,
}
file { '/etc/powerdns/recursor.conf':
ensure => file,
owner => 'pdns',
group => 'pdns',
mode => '0644',
require => Package['pdns-recursor'],
notify => Service['pdns-recursor'],
source => 'puppet:///configs/powerdns/recursor.conf',
}
service { 'pdns-recursor':
ensure => 'running',
enable => 'true',
}
Any ideas on how to fix this? I have a similar problem with another service (fail2ban)
that installs a custom configuration in /etc/fail2ban/jail.local (which doesn't exist
in the default installation, but Debian does a smart include).
1. Fail2Ban is installed
2. Fail2Ban is started.
3. Custom configuration is installed
4. Fail2Ban does NOT restart.
P.S. On a side note, I have a bootstrap process that takes a new server, installs
Salt & Puppet, puppet then connects to the master, I sign the key - but then
nothing happens. I have to service puppet restart on the agent in order for it
to pick up any of the changes. Once I do that, it automatically checks every
1800 seconds as normal. Is there some way around this?
-- Rob