aboutsummaryrefslogtreecommitdiff
path: root/manifests/autoupgrade.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/autoupgrade.pp')
-rw-r--r--manifests/autoupgrade.pp30
1 files changed, 16 insertions, 14 deletions
diff --git a/manifests/autoupgrade.pp b/manifests/autoupgrade.pp
index 2bd5c1f..6aa881b 100644
--- a/manifests/autoupgrade.pp
+++ b/manifests/autoupgrade.pp
@@ -1,25 +1,27 @@
class drupal::autoupgrade {
# Keep 8.x codebase updated
cron { "drupal-autoupgrade-8.x":
- command => "/usr/local/bin/drupal upgrade 8",
- user => root,
+ command => "/usr/local/bin/drupal upgrade 8",
+ user => root,
# 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'] ],
+ weekday => 5,
+ hour => "01",
+ minute => "30",
+ environment => [ 'SILENT=yes' ],
+ 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 => root,
+ command => "/usr/local/bin/drupal upgrade 7",
+ user => root,
# 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'] ],
+ weekday => 5,
+ hour => "01",
+ minute => "30",
+ environment => [ 'SILENT=yes' ],
+ ensure => present,
+ require => [ File['/usr/local/bin/drupal'], User['drupal'] ],
}
}