]> gitweb.fluxo.info Git - puppet-puppet.git/commitdiff
Adding puppetlast cronjob
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 20 Jun 2010 18:32:20 +0000 (15:32 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 20 Jun 2010 18:32:20 +0000 (15:32 -0300)
manifests/puppetmasterd.pp

index d7bfd5b29d3cc7e29126dc398578438923b4e6cf..89ffafcab4587ddfd7c9fa54af848547fa5bb8fd 100644 (file)
@@ -80,6 +80,16 @@ class puppetmasterd {
     require  => [ File["/usr/local/sbin/update-puppet-conf.sh"], User["puppet"] ],
   }
 
+  # cron rule to execute puppetlast once a week as a report
+  cron { "puppetlast":
+    command  => "puppetlast",
+    user     => root,
+    hour     => "0",
+    minute   => "0",
+    weekday  => "0",
+    ensure   => present,
+  }
+
   # cron rule to restart puppetmaster before restarting the nodes
   cron { "puppetmaster-restart":
     command  => "/etc/init.d/puppetmaster restart &> /dev/null",
@@ -119,4 +129,8 @@ class puppetmasterd::disabled inherits puppetmasterd {
   Service["puppetmaster"] {
     ensure => stopped,
   }
+
+  Cron["puppetlast"] {
+    ensure => absent,
+  }
 }