I have a puppetmaster module. In it is an 'ensure => running'
declaration. Runs of puppetd fail on this with the following error:
err: /Stage[main]/Puppet::Master/Service[puppetmasterd]/ensure: change
from stopped to running failed: Could not start
Service[puppetmasterd]: Execution of '/sbin/service puppetmasterd
start' returned 1: at /etc/puppet/modules/puppet/manifests/master.pp:
15
I assume that it is failing because puppetmasterd is already running
(hence the return code of '1'). But why does 'ensure => running' try
to restart the service, rather than just verify that it is running and
take action based on the response received?
Here is the module:
class puppet::master {
include puppet
include puppet::params
package { "puppet-server":
ensure => installed,
}
service { "puppetmasterd":
ensure => running,
hasstatus => true,
hasrestart => false,
enable => true,
require => File["/etc/puppet/puppet.conf"]
}
}
I changes hasrestart to false, thinking that is why i t was attempting
restart, but the error continues.
I should also add that I'm a complete newb to puppet, so I'm sure I've
made a mistake.
Thank you all kindly in advance.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.