Although it is not incorrect, you should not bypass class boundaries, so
it's better:

require=>Class['munin::install']

And usually you may include the diferent classes for a module in init.pp
chaining them there.

Regards,
El 04/03/2014 03:07, "Tim Dunphy" <[email protected]> escribió:

> 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 [email protected].
> 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<https://groups.google.com/d/msgid/puppet-users/CAOZy0enEGm-W1qtaCZfJ7J-6ovMs-uD2oN8fhX-KtGfmTaO%2BKQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CAF_B3deDiRbs8q8WPTUaX_HhB70ZuAiOZjRnkiGWhMS4Zb3SHg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to