summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-10-02 15:48:41 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-10-02 15:48:41 -0300
commit5683bbf31bc3d4124ee6792c7fecbcd125b31af6 (patch)
treeeb177544b57e41eb123c572845979cf734f401e4 /manifests
parent3d1de3a080eb1bd8e1b12b79e3df410ed7670496 (diff)
downloadpuppet-apache-5683bbf31bc3d4124ee6792c7fecbcd125b31af6.tar.gz
puppet-apache-5683bbf31bc3d4124ee6792c7fecbcd125b31af6.tar.bz2
Requirement for a2ensite/a2dissite
Diffstat (limited to 'manifests')
-rw-r--r--manifests/site.pp2
1 files changed, 2 insertions, 0 deletions
diff --git a/manifests/site.pp b/manifests/site.pp
index f6cfef3..6db5de5 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -191,6 +191,7 @@ define apache::site(
},
unless => "/bin/sh -c '[ -L ${apache::sites}-enabled/$vhost.conf ] \
&& [ ${apache::sites}-enabled/$vhost.conf -ef ${apache::sites}-available/$vhost.conf ]'",
+ require => "${apache::sites}-available/$vhost.conf",
notify => Exec["reload-apache2"],
}
}
@@ -202,6 +203,7 @@ define apache::site(
},
onlyif => "/bin/sh -c '[ -L ${apache::sites}-enabled/$vhost.conf ] \
&& [ ${apache::sites}-enabled/$vhost.conf -ef ${apache::sites}-available/$vhost.conf ]'",
+ require => "${apache::sites}-available/$vhost.conf",
notify => Exec["reload-apache2"],
}