diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-12-16 10:00:55 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-12-16 10:00:55 -0200 |
commit | 951ef21d7bcadcf7fcbc5d3718d0ff16869d0660 (patch) | |
tree | 870d06599c9164024c85f300f97cc0cc54d63a41 /manifests/maintenance.pp | |
parent | b371c43c3ea02d449d22f6cbc36ea48a06ae1e41 (diff) | |
download | puppet-drupal-951ef21d7bcadcf7fcbc5d3718d0ff16869d0660.tar.gz puppet-drupal-951ef21d7bcadcf7fcbc5d3718d0ff16869d0660.tar.bz2 |
Split into smaller classes
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, + } +} |