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

How to keep the sensu-plugin gem installed ? #410

Closed
mnellemann opened this issue Sep 3, 2015 · 1 comment
Closed

How to keep the sensu-plugin gem installed ? #410

mnellemann opened this issue Sep 3, 2015 · 1 comment

Comments

@mnellemann
Copy link

I have manually installed 'sensu-plugins-mailer' on my sensu server, by running /opt/sensu/embedded/bin/gem install sensu-plugins-mailer. The mailer plugin depends on the 'sensu-plugin' gem, which is also installed.

When I apply my Puppet manifests, the sensu module is trying to remove the 'sensu-plugin' gem, but this fails because of the dependency from 'sensu-plugins-mailer'.

Debug: Prefetching sensu_gem resources for package
Debug: Executing '/opt/sensu/embedded/bin/gem list --local'
Debug: Executing '/opt/sensu/embedded/bin/gem uninstall -x -a sensu-plugin'
Error: Execution of '/opt/sensu/embedded/bin/gem uninstall -x -a sensu-plugin' returned 1: ERROR:  While executing gem ... (Gem::DependencyRemovalException)
    Uninstallation aborted due to dependent gem(s)

Error: /Stage[main]/Sensu::Package/Package[sensu-plugin]/ensure: change from ["1.2.0"] to absent failed: Execution of '/opt/sensu/embedded/bin/gem uninstall -x -a sensu-plugin' returned 1: ERROR:  While executing gem ... (Gem::DependencyRemovalException)
    Uninstallation aborted due to dependent gem(s)

How do I tell sensu-puppet (preferably by Hiera) to keep the sensu-plugin gem installed ?
I can only find ways to install plugins by file, or package (without the 'sensu_gem' provider).

@mnellemann
Copy link
Author

I found the comment about setting sensu_plugin_version => 'installed' in #318, and that seems to fix it for me.

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

1 participant