From 43852070aee62175b227bdb76a818371da893d92 Mon Sep 17 00:00:00 2001 From: William Leese Date: Mon, 6 Jan 2014 10:57:30 +0900 Subject: [PATCH] Add support to set loglevel --- manifests/init.pp | 4 +++- manifests/package.pp | 1 + templates/sensu.erb | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index b7d9438229..9b28729038 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -36,7 +36,8 @@ $use_embedded_ruby = false, $rubyopt = '', $safe_mode = false, - $manage_services = true + $manage_services = true, + $log_level = 'info', ){ anchor {'sensu::begin': } @@ -78,6 +79,7 @@ purge_config => $purge_config, use_embedded_ruby => $use_embedded_ruby, rubyopt => $rubyopt, + log_level => $log_level, } class { 'sensu::rabbitmq': diff --git a/manifests/package.pp b/manifests/package.pp index a05665760d..9afc2bf4dc 100644 --- a/manifests/package.pp +++ b/manifests/package.pp @@ -12,6 +12,7 @@ $purge_config = 'false', $use_embedded_ruby = 'true', $rubyopt = '', + $log_level = 'info', ) { if $install_repo == 'true' or $install_repo == true { diff --git a/templates/sensu.erb b/templates/sensu.erb index ab6c02afdc..54183bd934 100644 --- a/templates/sensu.erb +++ b/templates/sensu.erb @@ -1,3 +1,4 @@ EMBEDDED_RUBY=<%= @use_embedded_ruby %> +LOG_LEVEL=<%= @log_level %> RUBYOPT="<%= @rubyopt %>"