aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache
diff options
context:
space:
mode:
Diffstat (limited to 'modules/apache')
-rw-r--r--modules/apache/manifests/init.pp7
1 files changed, 6 insertions, 1 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");