-
Notifications
You must be signed in to change notification settings - Fork 290
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
Unable to install sensu without rubygems #322
Comments
|
It might be an ordering problem in your case. Even though you have the rubygems package set to installed in the same run, dosen't necessarily mean that it will run in that order. Do you have keywords like before or after in your manifests? This might be helpful: https://docs.puppetlabs.com/learning/ordering.html |
|
The problem is not ordering, the problem is that sensu is using provider-api which is loaded before compaling the catalog. I also think that rubygems Package should be part of this module anyway. |
|
I'm not sure anything can be done about this within this module (other than remove support for ruby 1.8.7 or remove all of the types) since, like you said, rubygems is required for catalog compilation. Is there another suggestion you have for solving this issue? |
|
When you say it's not an ordering issue, what happens if you run the rubygems module before you install Sensu? Would that work or you are seeing a different issue before. I have installed sensu automatically without an issue...have a look: https://github.com/nohtyp/myvagrant-sensu/blob/master/puppet/modules/sensu/manifests/init.pp. I am also installing the rubygems package too. |
|
@confiq Did the above link help you resolve your issue? |
After little research here is the results:
After this little research, my suggestion is to remove that line. I can do PR if required. If not rescue is fine with nice printing error message. Some info about machine that I'm testing @nohtyp : Yes I saw it. that module does not use sensu-sensu module it uses nohtyp-sensu module. In other words, you wrote that module from scratch. |
|
Yes. That is exactly what I'm suggesting.
No idea. :( All I know it worked well on my debian machine. |
if we don't have rubygems on machine (default: debian6/7) we are not able to run puppet configuration to install rubygems. Example:
halts puppet run until rubygems is manually installed although we do have
Package {"rubygems": ensure: 'installed'}in same run. (our configuration is to automatically install sensu-client on every server)EDIT:
If json.rb has
require rubygemsthen it's module job to install it.The text was updated successfully, but these errors were encountered: