aboutsummaryrefslogtreecommitdiff
path: root/manifests/autoupgrade.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-27 20:34:18 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-10-27 20:34:18 -0200
commit8fe35a2abf1016af5dfbbe3b958e8351a93a0d55 (patch)
treeb935acf2dc42854bd7b67143de70ea114c49d5d9 /manifests/autoupgrade.pp
parente9c3cef4d02f5984dce207244d1b3fb01e4e91cc (diff)
downloadpuppet-drupal-8fe35a2abf1016af5dfbbe3b958e8351a93a0d55.tar.gz
puppet-drupal-8fe35a2abf1016af5dfbbe3b958e8351a93a0d55.tar.bz2
Auto-upgrade support
Diffstat (limited to 'manifests/autoupgrade.pp')
-rw-r--r--manifests/autoupgrade.pp25
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'] ],
+ }
+}