diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/apache/manifests/init.pp | 7 | ||||
| -rw-r--r-- | modules/phpbb/manifests/init.pp | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp index d15b3be9..b4ac04eb 100644 --- a/modules/apache/manifests/init.pp +++ b/modules/apache/manifests/init.pp @@ -4,7 +4,7 @@ class apache { file { $name: content => $content, require => Package["apache-conf"], - notify => Service["apache"], + notify => Exec['service httpd configtest'], } } @@ -28,6 +28,11 @@ class apache { subscribe => [ Package['apache-mpm-prefork'] ], } + exec { "service httpd configtest": + refreshonly => true, + notify => Service["apache"], + } + apache::config { "/etc/httpd/conf.d/customization.conf": content => template("apache/customization.conf"); diff --git a/modules/phpbb/manifests/init.pp b/modules/phpbb/manifests/init.pp index a786dfec..90fb32be 100644 --- a/modules/phpbb/manifests/init.pp +++ b/modules/phpbb/manifests/init.pp @@ -65,7 +65,7 @@ class phpbb { $lang = $name file { "/etc/httpd/conf/vhosts.d/forums.d/redirect_$name.conf": content => template("phpbb/forums_redirect.conf"), - notify => Service['apache'], + notify => Exec['service httpd configtest'], } } |
