Hey all,
I notice with the munin module I wrote, the munin-node service won't start
on the first puppet run. Run it a second time, and the service starts no
problem.
The problem here I believe is that puppet is attempting to start the
service before the package is installed.
So I tried to setup a dependency like this:
class munin::service {
include munin::install
service { "munin-node":
ensure => running,
require => Package["munin-node"],
}
}
Using a require statement I tried to ensure that the munin-node package is
installed before trying to start the service.
However, I'm getting the following error when I ry to run the module:
Error: Failed to apply catalog: Could not find dependency
Package[munin-node] for Service[munin-node] at
/etc/puppet/environments/production/modules/munin/manifests/service.pp:8
I was just wondering if I could get some help finding the right formula to
get this to work?
Thanks
Tim
--
GPG me!!
gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
--
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 puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CAOZy0enEGm-W1qtaCZfJ7J-6ovMs-uD2oN8fhX-KtGfmTaO%2BKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.