aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-03-09 17:23:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-03-09 17:23:11 -0300
commit6906dfdc50e26589b3384ca22c8ba2dee7247328 (patch)
tree3c92cfa55b4726cd68741164b9c043ebac163e5e /manifests
parent3e1f6d3f414b809ba4ed1631d49dbb428f79ee7b (diff)
downloadpuppet-drupal-6906dfdc50e26589b3384ca22c8ba2dee7247328.tar.gz
puppet-drupal-6906dfdc50e26589b3384ca22c8ba2dee7247328.tar.bz2
Adding drupal cronjob
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index d5d0591..4068c71 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -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'],
+ }
}