Ask Your Question

Problem restarting puppet service

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

Robert Shady gravatar image

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

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


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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

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

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


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 -0600 )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


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

Seen: 132 times

Last updated: Feb 23 '14