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:
parent
4c3c603350
commit
bda1a2089d
2 changed files with 4 additions and 1 deletions
|
@ -24,7 +24,7 @@ class icinga2::nrpe::config inherits icinga2::nrpe {
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0755',
|
mode => '0755',
|
||||||
purge => true,
|
purge => $nrpe_purge_unmanaged,
|
||||||
recurse => true,
|
recurse => true,
|
||||||
require => Package[$icinga2::params::icinga2_client_packages],
|
require => Package[$icinga2::params::icinga2_client_packages],
|
||||||
}
|
}
|
||||||
|
|
|
@ -297,6 +297,9 @@ class icinga2::params {
|
||||||
# Defaults to NOT allow command arguments
|
# Defaults to NOT allow command arguments
|
||||||
$allow_command_argument_processing = '0'
|
$allow_command_argument_processing = '0'
|
||||||
|
|
||||||
|
# Whether or not to purge nrpe config files NOT managed by Puppet.
|
||||||
|
$nrpe_purge_unmanaged = false
|
||||||
|
|
||||||
case $::operatingsystem {
|
case $::operatingsystem {
|
||||||
#File and template variable names for Red Had/CentOS systems:
|
#File and template variable names for Red Had/CentOS systems:
|
||||||
'CentOS': {
|
'CentOS': {
|
||||||
|
|
Loading…
Reference in a new issue