aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'],
+ }
}