summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/defines/vhost_varieties.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/defines/vhost_varieties.pp b/manifests/defines/vhost_varieties.pp
index 019147a..92295bb 100644
--- a/manifests/defines/vhost_varieties.pp
+++ b/manifests/defines/vhost_varieties.pp
@@ -462,6 +462,7 @@ define apache::vhost::php::drupal(
$vhost_destination = 'absent',
$htpasswd_file = 'absent',
$htpasswd_path = 'absent',
+ $manage_cron = true
){
$documentroot = $path ? {
'absent' => $operatingsystem ? {
@@ -471,6 +472,13 @@ define apache::vhost::php::drupal(
default => "${path}/www"
}
+ if $manage_cron {
+ file{"/etc/cron.d/drupal_cron_${name}":
+ content => "0 * * * * apache wget -O - -q -t 1 http://${doamin}/cron.php\n",
+ owner => root, group => 0, mode => 0644;
+ }
+ }
+
# create vhost configuration file
apache::vhost::php::webapp{$name:
ensure => $ensure,