From 5683bbf31bc3d4124ee6792c7fecbcd125b31af6 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 2 Oct 2015 15:48:41 -0300 Subject: Requirement for a2ensite/a2dissite --- manifests/site.pp | 2 ++ 1 file changed, 2 insertions(+) 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"], } -- cgit v1.2.3