]> gitweb.fluxo.info Git - puppet-drupal.git/commitdiff
Adding drupal cronjob
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 9 Mar 2010 20:23:11 +0000 (17:23 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 9 Mar 2010 20:23:11 +0000 (17:23 -0300)
manifests/init.pp

index d5d0591cf3d3fc8498b3aae9d7e3304f6e3a49d3..4068c71dc72b15cae282d6defdb311f15089f8ef 100644 (file)
@@ -22,4 +22,15 @@ class drupal inherits pear {
     group   => root,
     mode    => 755,
   }
+
+  # Run drupal cron
+  cron { "drupal-cron":
+    command  => "/usr/local/sbin/drupal cron &> /dev/null",
+    user     => root,
+    hour     => "*",
+    minute   => "10",
+    weekday  => "*",
+    ensure   => present,
+    require  => File['/usr/local/sbin/drupal'],
+  }
 }