aboutsummaryrefslogtreecommitdiff
path: root/manifests/autoupgrade.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-07-21 17:15:39 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-07-21 17:15:39 -0300
commit54adff4e3ba0e31a70f50da76af0f65857fafbf7 (patch)
tree5cfa24d50a6f78bf946406008d28f1ba062d4a8a /manifests/autoupgrade.pp
parent38b5ec3e760701866b7baa498a1df0c43b36e684 (diff)
downloadpuppet-drupal-54adff4e3ba0e31a70f50da76af0f65857fafbf7.tar.gz
puppet-drupal-54adff4e3ba0e31a70f50da76af0f65857fafbf7.tar.bz2
Feat: drupal 9 support
Diffstat (limited to 'manifests/autoupgrade.pp')
-rw-r--r--manifests/autoupgrade.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/manifests/autoupgrade.pp b/manifests/autoupgrade.pp
index 6aa881b..cd7a6d5 100644
--- a/manifests/autoupgrade.pp
+++ b/manifests/autoupgrade.pp
@@ -1,4 +1,17 @@
class drupal::autoupgrade {
+ # Keep 9.x codebase updated
+ cron { "drupal-autoupgrade-9.x":
+ command => "/usr/local/bin/drupal upgrade 9",
+ user => root,
+ # Run once a week after security releases (usually on Wednesdays)
+ weekday => 5,
+ hour => "01",
+ minute => "30",
+ environment => [ 'SILENT=yes' ],
+ ensure => present,
+ require => [ File['/usr/local/bin/drupal'], User['drupal'] ],
+ }
+
# Keep 8.x codebase updated
cron { "drupal-autoupgrade-8.x":
command => "/usr/local/bin/drupal upgrade 8",