diff options
Diffstat (limited to 'manifests/maintenance.pp')
-rw-r--r-- | manifests/maintenance.pp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/maintenance.pp b/manifests/maintenance.pp new file mode 100644 index 0000000..097ebcc --- /dev/null +++ b/manifests/maintenance.pp @@ -0,0 +1,22 @@ +class drupal::maintenance { + # Run drupal cron + cron { "drupal-cron": + command => "/usr/local/sbin/drupal cron &> /dev/null", + user => root, + hour => "*/1", + minute => "15", + ensure => present, + require => File['/usr/local/sbin/drupal'], + } + + # Keep themes and modules up-to-date + cron { "drupal-update": + command => "/usr/local/sbin/drupal cron-update", + user => root, + # Run once a week after security releases (usually on Wednesdays) + weekday => 5, + hour => "02", + minute => "30", + ensure => present, + } +} |