]> gitweb.fluxo.info Git - puppet-apache.git/commitdiff
Requirement for a2ensite/a2dissite
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 2 Oct 2015 18:48:41 +0000 (15:48 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 2 Oct 2015 18:48:41 +0000 (15:48 -0300)
manifests/site.pp

index f6cfef3fd3c1eb72423188a8d5f575d8f533ba70..6db5de5649f882c5d62d66231fd77bd7b3ba8bb1 100644 (file)
@@ -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"],
       }