aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/maintenance.pp9
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'] ],
}
}