aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-12-29 23:25:28 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-12-29 23:25:28 -0200
commitf36cb3d7feb171813d003a9dcd1d322704d0a109 (patch)
tree037f95a5c18370d5231dcffda458dd8af68a0ace /manifests
parent05cf4d282373671adcc6beb91c668d35f5cedd41 (diff)
downloadpuppet-drupal-f36cb3d7feb171813d003a9dcd1d322704d0a109.tar.gz
puppet-drupal-f36cb3d7feb171813d003a9dcd1d322704d0a109.tar.bz2
Silent autoupgrades
Diffstat (limited to 'manifests')
-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'] ],
}
}