Ask Your Question
1

Problem restarting puppet service

asked 2014-02-22 21:46:25 -0500

Robert Shady gravatar image

updated 2014-02-23 00:29:24 -0500

spuder gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

Comments

After playing around with it some more the end result was that the /etc/init.d/pdns-recursor didn't support the 'status' command, so puppet took the safe road and ...(more)

Robert Shady gravatar imageRobert Shady ( 2014-02-23 02:00:23 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-02-23 11:25:29 -0500

ramindk gravatar image

You can tell Puppet that the status command doesn't work.

service { 'pdns-recursor':
  ensure    => 'running',
  enable    => 'true',
  hasstatus => false, # default to true so you have to set false
  pattern   => 'pdns-recursor', # name of process or you can regex as well
}

Additionally it's not hard to modify the init script to include a status function. You might also open a bug with pdns as well.

edit flag offensive delete link more

Comments

Yes, I ran out of room in my comment above - but I did end up modifying the pdns-recursor init script to include a status which solved my problem. Thanks!

Robert Shady gravatar imageRobert Shady ( 2014-02-23 18:52:23 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-02-22 21:46:25 -0500

Seen: 113 times

Last updated: Feb 23 '14