From: Angus Thomas athomas@redhat.com
--- recipes/apache/manifests/init.pp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/recipes/apache/manifests/init.pp b/recipes/apache/manifests/init.pp index 79f15f9..dbecbf8 100644 --- a/recipes/apache/manifests/init.pp +++ b/recipes/apache/manifests/init.pp @@ -12,7 +12,9 @@ class apache { # if selinux is enabled and we want to use mod_proxy, we need todo this exec{'permit-http-networking': command => '/usr/sbin/setsebool httpd_can_network_connect 1', - logoutput => true } + logoutput => true, + unless => "/usr/bin/test 'Disabled' = `/usr/sbin/getenforce`" + }
service { "httpd": ensure => running,