sensu / sensu-chef

Sensu Chef cookbook.
https://supermarket.chef.io/cookbooks/sensu
Apache License 2.0
222 stars 280 forks source link

gem_package[sensu-plugins-windows] action install #541

Open gopalvd opened 7 years ago

gopalvd commented 7 years ago

Hi,

I have used the below code snippet in my cookbook recipe, I tried this on windows server.

sensu_gem 'sensu-plugins-windows' do version '0.0.10' end

When the recipe is executed, the plugins are copied to C:/opt/sensu/embedded/bin directory. Actually I was expected this in C:/etc/sensu/plugins directory. Can you show some light why its is going to C:/opt/sensu/embedded/bin directory, and where is this defined in the sensu cookbook.?

majormoses commented 7 years ago

when you install as a gem it will be placed under the embedded ruby path which would be /opt/sensu/embedded/bin. For any plugins you choose to not package as gems you can install it it would best be placed under /etc/sensu/plugins

If you want to see the code that makes this work: