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

Any reason to not use sensu-install to install plugins? #45

Open
snadorp opened this issue Aug 25, 2017 · 2 comments
Open

Any reason to not use sensu-install to install plugins? #45

snadorp opened this issue Aug 25, 2017 · 2 comments

Comments

@snadorp
Copy link

snadorp commented Aug 25, 2017

We are currently looking into a reliable way of installing plugins on the clients.
Currently we are using

sensu:
  client:
    embedded_ruby: true
    install_gems:
      - sensu-plugins-http

This seems to be unreliable in a the way that the build of native extensions seem to break.

We are working around the issue by adding this line to the hosts salt (and removing the installation of the gem in the pillar above):

install_sensu_plugins:
  cmd.run:
    - name: sensu-install -p http

This seems to work fine for us, would be great to have an option to specify the plugins in the pillar which would be installed the sensu-install way.

@powellchristoph
Copy link

@snadorp Sounds like a good idea. PR's are welcome.

@snadorp
Copy link
Author

snadorp commented Aug 28, 2017

Don't think I'll find time to implement this in a proper PR way in near future, so if someone likes to grab it, please do.
The reason installation of gems might fail is, that native dependencies might be missing. We solved this in the end by doing this:

install_sensu_http_plugin_deps:
  pkg.installed:
    - pkgs:
      - g++

install_sensu_http_check_plugin:
  cmd.run:
    - name: sensu-install -p http
    - require:
      - pkg: install_sensu_http_plugin_deps

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