diff options
Diffstat (limited to 'manifests/autoupgrade.pp')
-rw-r--r-- | manifests/autoupgrade.pp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/manifests/autoupgrade.pp b/manifests/autoupgrade.pp new file mode 100644 index 0000000..c4a22cc --- /dev/null +++ b/manifests/autoupgrade.pp @@ -0,0 +1,25 @@ +class drupal::autoupgrade { + # Keep 8.x codebase updated + cron { "drupal-autoupgrade-8.x": + command => "/usr/local/bin/drupal upgrade 8", + user => drupal, + # Run once a week after security releases (usually on Wednesdays) + weekday => 5, + hour => "01", + minute => "30", + ensure => present, + require => [ File['/usr/local/bin/drupal'], User['drupal'] ], + } + + # Keep 7.x codebase updated + cron { "drupal-autoupgrade-7.x": + command => "/usr/local/bin/drupal upgrade 7", + user => drupal, + # Run once a week after security releases (usually on Wednesdays) + weekday => 5, + hour => "01", + minute => "30", + ensure => present, + require => [ File['/usr/local/bin/drupal'], User['drupal'] ], + } +} |