diff --git a/manifests/config.pp b/manifests/config.pp index 20d6240..4a8939e 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -14,11 +14,6 @@ ensure => present, } - $_allow_bash_command_substitution = $nrpe::allow_bash_command_substitution ? { - undef => undef, - default => bool2str($nrpe::allow_bash_command_substitution, '1', '0'), - } - concat::fragment { 'nrpe main config': target => $nrpe::config, content => epp( @@ -32,7 +27,7 @@ 'nrpe_group' => $nrpe::nrpe_group, 'allowed_hosts' => $nrpe::allowed_hosts, 'dont_blame_nrpe' => bool2str($nrpe::dont_blame_nrpe, '1', '0'), - 'allow_bash_command_substitution' => $_allow_bash_command_substitution, + 'allow_bash_command_substitution' => $nrpe::allow_bash_command_substitution, 'libdir' => $nrpe::params::libdir, 'command_prefix' => $nrpe::command_prefix, 'debug' => bool2str($nrpe::debug, '1', '0'), diff --git a/templates/nrpe.cfg.epp b/templates/nrpe.cfg.epp index 9b0b898..d74e8bd 100644 --- a/templates/nrpe.cfg.epp +++ b/templates/nrpe.cfg.epp @@ -121,7 +121,7 @@ dont_blame_nrpe=<%= $dont_blame_nrpe %> #allow_bash_command_substitution=0 <% if $allow_bash_command_substitution { -%> -allow_bash_command_substitution=<%= $allow_bash_command_substitution %> +allow_bash_command_substitution=1 <%- } -%>