[icinga-checkins] icinga.org: puppet-icinga2/master: Parametrize purging of unmanaged nrpe configs

git at icinga.org git at icinga.org
Fri Nov 14 07:13:18 CET 2014


Module: puppet-icinga2
Branch: master
Commit: bda1a2089d94f279e02db5955003e2aff57de6ce
URL:    https://git.icinga.org/?p=puppet-icinga2.git;a=commit;h=bda1a2089d94f279e02db5955003e2aff57de6ce

Author: Tom De Vylder <tom at penumbra.be>
Date:   Thu Nov  6 23:03:45 2014 +0100

Parametrize purging of unmanaged nrpe configs

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

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

refs#7673: https://dev.icinga.org/issues/7673

---

 manifests/nrpe/config.pp |    2 +-
 manifests/params.pp      |    3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/manifests/nrpe/config.pp b/manifests/nrpe/config.pp
index d3c8dfb..4ba4d04 100644
--- a/manifests/nrpe/config.pp
+++ b/manifests/nrpe/config.pp
@@ -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],
   }
diff --git a/manifests/params.pp b/manifests/params.pp
index ac603c7..309b9ba 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -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': {



More information about the icinga-checkins mailing list