summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-11-08 13:59:55 -0200
committerSilvio Rhatto <rhatto@riseup.net>2009-11-08 13:59:55 -0200
commitd509548b5df862e9d16c0f4df01c5d78bc2e0644 (patch)
tree2a2600b090817c4c9b24c3960f511fac6607faa6 /manifests
parent5253b1335ef5974fb31b00faec70738e43a9857b (diff)
downloadpuppet-apache-d509548b5df862e9d16c0f4df01c5d78bc2e0644.tar.gz
puppet-apache-d509548b5df862e9d16c0f4df01c5d78bc2e0644.tar.bz2
Minor change
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp10
1 files changed, 5 insertions, 5 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index f8dd454..202a753 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -103,11 +103,6 @@ class apache {
case $ensure {
'present': {
- exec { "/usr/sbin/a2ensite $name":
- unless => "/bin/sh -c '[ -L ${apache2_sites}-enabled/$name ] \
- && [ ${apache2_sites}-enabled/$name -ef ${apache2_sites}-available/$name ]'",
- notify => Exec["reload-apache2"],
- }
if !defined(File["${docroot}"]) {
file { "${docroot}":
ensure => directory,
@@ -116,6 +111,11 @@ class apache {
mode => 0755,
}
}
+ exec { "/usr/sbin/a2ensite $name":
+ unless => "/bin/sh -c '[ -L ${apache2_sites}-enabled/$name ] \
+ && [ ${apache2_sites}-enabled/$name -ef ${apache2_sites}-available/$name ]'",
+ notify => Exec["reload-apache2"],
+ }
}
'absent': {
exec { "/usr/sbin/a2dissite $name":