]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Manage rrdcached just on main master (3)
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 7 Mar 2014 20:35:36 +0000 (17:35 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 7 Mar 2014 20:35:36 +0000 (17:35 -0300)
manifests/subsystem/monitor/master.pp

index fd4f66229360fb0c06517daf81b5abefdffacd4c..2d05e8e909a857647cbafa18d47f0d1073b7793b 100644 (file)
@@ -10,9 +10,11 @@ class nodo::subsystem::monitor::master {
   $main = hiera('nodo::role::master::main',        false)
 
   if $main == true {
-    $manage = present
+    $manage  = 'present'
+    $service = 'running'
   } else {
-    $manage = absent
+    $manage  = 'absent'
+    $service = 'stopped'
   }
 
   #
@@ -34,7 +36,7 @@ class nodo::subsystem::monitor::master {
   }
 
   service { 'rrdcached':
-    ensure  => $manage,
+    ensure  => $service,
     require => [ Package['rrdcached'], User['munin'], Group['munin'] ],
   }
 }