diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2023-06-02 22:31:33 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2023-06-02 22:31:33 -0300 |
commit | 6a9bb5e23d2a94610fa2eaf255cd1364efdb358f (patch) | |
tree | 2e58b0eb358172785b7458476b0719911b2cf278 | |
parent | 650c996f13c36dae6a7463fbc4e5fbee1f829fa4 (diff) | |
download | puppet-drupal-6a9bb5e23d2a94610fa2eaf255cd1364efdb358f.tar.gz puppet-drupal-6a9bb5e23d2a94610fa2eaf255cd1364efdb358f.tar.bz2 |
-rw-r--r-- | manifests/maintenance.pp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/manifests/maintenance.pp b/manifests/maintenance.pp index d757122..b3f12b5 100644 --- a/manifests/maintenance.pp +++ b/manifests/maintenance.pp @@ -1,11 +1,14 @@ -class drupal::maintenance { +class drupal::maintenance( + $cron = 'present', + $update = 'present', +) { # Run drupal cron cron { "drupal-cron": command => "/usr/local/bin/drupal cron &> /dev/null", user => drupal, hour => "*/1", minute => "15", - ensure => present, + ensure => $cron, require => [ File['/usr/local/bin/drupal'], User['drupal'] ], } @@ -17,7 +20,7 @@ class drupal::maintenance { weekday => 5, hour => "02", minute => "30", - ensure => present, + ensure => $update, require => [ File['/usr/local/bin/drupal'], User['drupal'] ], } } |