Open snadorp opened 7 years ago
@snadorp Sounds like a good idea. PR's are welcome.
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
We are currently looking into a reliable way of installing plugins on the clients. Currently we are using
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):
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.