Skip to content

Commit

Permalink
Set a GEM_PATH in /etc/default/sensu
Browse files Browse the repository at this point in the history
If we have gems installed in different locations, we'd like to be able
to use them without having to mess around the /opt/sensu directory.
  • Loading branch information
Jesus Roncero committed Jul 4, 2014
1 parent dcbdc24 commit 9a72ce9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@
# String. Ruby opts to be passed to the sensu services
# Default: ''
#
# [*gem_path*]
# String. Paths to add to GEM_PATH if we need to look for different dirs.
# Default: ''
#
# [*log_level*]
# String. Sensu log level to be used
# Default: 'info'
Expand Down Expand Up @@ -210,6 +214,7 @@
$purge_config = false,
$use_embedded_ruby = false,
$rubyopt = '',
$gem_path = '',
$log_level = 'info',
){

Expand Down
1 change: 1 addition & 0 deletions templates/sensu.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
EMBEDDED_RUBY=<%= scope.lookupvar("sensu::use_embedded_ruby") %>
LOG_LEVEL=<%= scope.lookupvar("sensu::log_level") %>
RUBYOPT="<%= scope.lookupvar("sensu::rubyopt") %>"
GEM_PATH="<%= scope.lookupvar("sensu::gem_path") %>"

0 comments on commit 9a72ce9

Please sign in to comment.