Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using sensu_gem provider before sensu::client is installed? #520

Closed
daytonturner opened this issue Jul 14, 2016 · 2 comments
Closed

Using sensu_gem provider before sensu::client is installed? #520

daytonturner opened this issue Jul 14, 2016 · 2 comments

Comments

@daytonturner
Copy link

daytonturner commented Jul 14, 2016

Hi there,

So we're using this module with hiera, and found that when bootstrapping a new machine, doing the following generates an error:

sensu::client: true

system::packages:
     sensu-plugins-io-checks:
        ensure: installed
        provider: sensu_gem

What I end up with, is:

Error: /Package[sensu-plugins-io-checks]: Provider sensu_gem is not functional on this host

Until the sensu client has had a chance to install. It's pretty straight forward, puppet is trying to satisfy the sensu_gem provided module, but its not going to work until the sensu client has been installed.

I tried adding a require: line and specifying things like Package[sensu] or Package[sensu-plugin] but just ended up with a circular dependency that could not be satisfied.

Removing the package from the config, letting sensu install, then running it afterwards works nicely, of course.

Any tips on how to get around this chicken and egg issue?

@jaxxstorm
Copy link
Contributor

Use run stages:

https://docs.puppet.com/puppet/latest/reference/lang_run_stages.html

Have sensu install before the main stage and then the provider should be available

@jaxxstorm
Copy link
Contributor

Going to close this, no feedback for several months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants