Should the notify on the file resource "notify" and Exec that does "service
pdns-recursor restart"
...
notify => Exec['restart']
...
Exec { 'restart':
command => '/sbin/service pdns-recursor restart'
}
something like that maybe?
On Sat, Feb 22, 2014 at 7:50 PM, Dan White <[email protected]> wrote:
> The "notify" parameter on the file resource should make it happen.
> Have you tried a run in debug mode ?
> It can maybe show you what might be missing.
>
> On Feb 22, 2014, at 10:35 PM, Robert Shady <[email protected]>
> wrote:
>
> (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
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/8075eb6a-8b3e-4be8-baae-8629a8dffc6b%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/3E440556-2786-4D3A-A4A3-56B4104BA189%40icloud.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CAHu%2B3OxocW2_L%2Bfp%3DyFo5uMCSYY4KRtD1Hy3pAg4x-ReuR1u0A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.