diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-10-02 15:48:41 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-10-02 15:48:41 -0300 |
commit | 5683bbf31bc3d4124ee6792c7fecbcd125b31af6 (patch) | |
tree | eb177544b57e41eb123c572845979cf734f401e4 | |
parent | 3d1de3a080eb1bd8e1b12b79e3df410ed7670496 (diff) | |
download | puppet-apache-5683bbf31bc3d4124ee6792c7fecbcd125b31af6.tar.gz puppet-apache-5683bbf31bc3d4124ee6792c7fecbcd125b31af6.tar.bz2 |
Requirement for a2ensite/a2dissite
-rw-r--r-- | manifests/site.pp | 2 |
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"], } |