diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-10-14 09:29:36 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-10-14 09:29:36 -0300 |
commit | 26cc2360fbf79c4e361de7b59e0c4d00e2d9b201 (patch) | |
tree | dbf9820da4fadcfda5a5fe99b248e4f02ea41c93 /manifests/maintenance.pp | |
parent | a484a682bde86e1f7e4489dcaaee0c8651084915 (diff) | |
download | puppet-drupal-26cc2360fbf79c4e361de7b59e0c4d00e2d9b201.tar.gz puppet-drupal-26cc2360fbf79c4e361de7b59e0c4d00e2d9b201.tar.bz2 |
Use drupal user for cronjobs
Diffstat (limited to 'manifests/maintenance.pp')
-rw-r--r-- | manifests/maintenance.pp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/manifests/maintenance.pp b/manifests/maintenance.pp index 16f4c6a..720089e 100644 --- a/manifests/maintenance.pp +++ b/manifests/maintenance.pp @@ -2,21 +2,22 @@ class drupal::maintenance { # Run drupal cron cron { "drupal-cron": command => "/usr/local/bin/drupal cron &> /dev/null", - user => root, + user => drupal, hour => "*/1", minute => "15", ensure => present, - require => File['/usr/local/sbin/drupal'], + require => [ File['/usr/local/sbin/drupal'], User['drupal'] ], } # Keep themes and modules up-to-date cron { "drupal-update": command => "/usr/local/bin/drupal cron-update", - user => root, + user => drupal, # Run once a week after security releases (usually on Wednesdays) weekday => 5, hour => "02", minute => "30", ensure => present, + require => User['drupal'], } } |