this is what we really mean
authorStephen Gran <steve@lobefin.net>
Mon, 9 Apr 2012 19:05:06 +0000 (21:05 +0200)
committerStephen Gran <steve@lobefin.net>
Mon, 9 Apr 2012 19:05:06 +0000 (21:05 +0200)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/nagios/manifests/client.pp
modules/nagios/manifests/server.pp

index e4f8d90..85abdca 100644 (file)
@@ -36,7 +36,7 @@ class nagios::client inherits nagios {
        }
        file { '/etc/nagios/':
                ensure  => directory,
-               recurse => true,
+               recurse => remote,
                require => Package['nagios-nrpe-server'],
                notify  => Service['nagios-nrpe-server'],
        }
@@ -46,7 +46,7 @@ class nagios::client inherits nagios {
        }
        file { '/etc/nagios/nrpe.d':
                ensure  => directory,
-               recurse => true,
+               recurse => remote,
                notify  => Service['nagios-nrpe-server'],
        }
        file { '/etc/nagios/nrpe.d/debianorg.cfg':
index 21e00b0..0573c14 100644 (file)
@@ -15,19 +15,19 @@ class nagios::server {
 
        file { '/etc/nagios-plugins/config':
                ensure  => directory,
-               recurse => true,
+               recurse => remote,
                require => Package['nagios3'],
                notify  => Service['nagios3'],
        }
        file { '/etc/nagios3':
                ensure  => directory,
-               recurse => true,
+               recurse => remote,
                require => Package['nagios3'],
                notify  => Service['nagios3'],
        }
        file { '/etc/nagios3/puppetconf.d':
                ensure => directory,
-               recurse => true,
+               recurse => remote,
                require => Package['nagios3'],
                notify  => Service['nagios3'],
        }