diff options
author | Marcel Haerry <haerry@puzzle.ch> | 2009-05-11 12:00:59 +0200 |
---|---|---|
committer | duritong <peter.meier@immerda.ch> | 2009-05-17 15:47:03 +0200 |
commit | 6f6eb1b3542fa1ad1f3224d18066454cef37e5f5 (patch) | |
tree | 9352f121eb966f9419ef67b73fe083f2a0807791 /manifests/defines | |
parent | 5a75796eab5d016421619c033fcd1474a35e0e67 (diff) |
manage drupal crons
Diffstat (limited to 'manifests/defines')
-rw-r--r-- | manifests/defines/vhost_varieties.pp | 8 |
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, |