You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scenario is that if rvm installs ruby first, sensu-install -p sensu-plugins-elasticsearch will install the gems into the systemwide ruby folder and sensu can no longer find the gems. If I install sensu first, sensu-install does The Right Thing and installs them in the embedded ruby path. I can't just go ripping rvm and ruby out of prod however. :)
/etc/default/sensu has embedded ruby set to true.
Talked a bit with @majormoses - installing rvm and then trying to use sensu-install throws problems:
[root@esdata03 centos]# /opt/sensu/embedded/bin/sensu-install -p elasticsearch
/opt/sensu/embedded/lib/ruby/site_ruby/2.4.0/rubygems.rb:270:in `find_spec_for_exe': can't find gem sensu (>= 0.a) (Gem::GemNotFoundException)
from /opt/sensu/embedded/lib/ruby/site_ruby/2.4.0/rubygems.rb:298:in `activate_bin_path'
from /opt/sensu/embedded/bin/sensu-install:22:in `<main>'
However we can work around this by calling the embedded gem installer directly:
The scenario is that if rvm installs ruby first,
sensu-install -p sensu-plugins-elasticsearch
will install the gems into the systemwide ruby folder and sensu can no longer find the gems. If I install sensu first, sensu-install does The Right Thing and installs them in the embedded ruby path. I can't just go ripping rvm and ruby out of prod however. :)/etc/default/sensu has embedded ruby set to true.
Talked a bit with @majormoses - installing rvm and then trying to use sensu-install throws problems:
However we can work around this by calling the embedded gem installer directly:
I propose changing the sensu_gem provider (which is way above my head) to invoke the embedded gem install directly.
Platform and version information
Anything else to add that you think will be helpful?
Beer. So much beer.
The text was updated successfully, but these errors were encountered: