aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-01-14 19:26:13 +0000
committerMichael Scherer <misc@mageia.org>2012-01-14 19:26:13 +0000
commitb1963409bc0aff406437a83a378a4c9e83fe6220 (patch)
treeee3f94fc41bb0d7a69315bca65baed72f2bc9b17 /modules/apache
parente40da93b493fa3402cd8ddf4c88acb03257da58f (diff)
downloadpuppet-b1963409bc0aff406437a83a378a4c9e83fe6220.tar
puppet-b1963409bc0aff406437a83a378a4c9e83fe6220.tar.gz
puppet-b1963409bc0aff406437a83a378a4c9e83fe6220.tar.bz2
puppet-b1963409bc0aff406437a83a378a4c9e83fe6220.tar.xz
puppet-b1963409bc0aff406437a83a378a4c9e83fe6220.zip
run configtest before restarting or reloading apache
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");