From 54adff4e3ba0e31a70f50da76af0f65857fafbf7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 21 Jul 2020 17:15:39 -0300 Subject: Feat: drupal 9 support --- manifests/autoupgrade.pp | 13 +++++++++++++ manifests/init.pp | 8 ++++++++ 2 files changed, 21 insertions(+) (limited to 'manifests') 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", diff --git a/manifests/init.pp b/manifests/init.pp index b81f231..96fc36d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -66,6 +66,14 @@ class drupal { backup => false, } + # Ensure we have an 9.x instance + exec { 'drupal-download-9.x': + command => '/usr/local/bin/drupal download 9', + user => "root", + creates => '/var/www/data/drupal-9', + require => File['/usr/local/bin/drupal'], + } + # Ensure we have an 8.x instance exec { 'drupal-download-8.x': command => '/usr/local/bin/drupal download 8', -- cgit v1.2.3