Parametrize purging of unmanaged nrpe configs

Signed-off-by: Nick Chappell <nick@intronic.org>

Merged from: https://github.com/Icinga/puppet-icinga2/pull/39

refs#7673: https://dev.icinga.org/issues/7673
This commit is contained in:
Tom De Vylder 2014-11-06 23:03:45 +01:00 committed by Nick Chappell
parent 4c3c603350
commit bda1a2089d
2 changed files with 4 additions and 1 deletions

View file

@ -24,7 +24,7 @@ class icinga2::nrpe::config inherits icinga2::nrpe {
owner => 'root',
group => 'root',
mode => '0755',
purge => true,
purge => $nrpe_purge_unmanaged,
recurse => true,
require => Package[$icinga2::params::icinga2_client_packages],
}

View file

@ -297,6 +297,9 @@ class icinga2::params {
# Defaults to NOT allow command arguments
$allow_command_argument_processing = '0'
# Whether or not to purge nrpe config files NOT managed by Puppet.
$nrpe_purge_unmanaged = false
case $::operatingsystem {
#File and template variable names for Red Had/CentOS systems:
'CentOS': {