Skip to content

Commit

Permalink
Add support to set loglevel
Browse files Browse the repository at this point in the history
  • Loading branch information
wleese committed Jan 6, 2014
1 parent b0dfbb3 commit 4385207
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
$use_embedded_ruby = false,
$rubyopt = '',
$safe_mode = false,
$manage_services = true
$manage_services = true,
$log_level = 'info',
){

anchor {'sensu::begin': }
Expand Down Expand Up @@ -78,6 +79,7 @@
purge_config => $purge_config,
use_embedded_ruby => $use_embedded_ruby,
rubyopt => $rubyopt,
log_level => $log_level,
}

class { 'sensu::rabbitmq':
Expand Down
1 change: 1 addition & 0 deletions manifests/package.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
$purge_config = 'false',
$use_embedded_ruby = 'true',
$rubyopt = '',
$log_level = 'info',
) {

if $install_repo == 'true' or $install_repo == true {
Expand Down
1 change: 1 addition & 0 deletions templates/sensu.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
EMBEDDED_RUBY=<%= @use_embedded_ruby %>
LOG_LEVEL=<%= @log_level %>
RUBYOPT="<%= @rubyopt %>"

0 comments on commit 4385207

Please sign in to comment.