diff --git a/manifests/vhost.pp b/manifests/vhost.pp index d06f801..86e4870 100644 --- a/manifests/vhost.pp +++ b/manifests/vhost.pp @@ -72,20 +72,6 @@ define httpd::vhost( httpd::mod { 'version': ensure => present } } - # selinux may deny directory listing and access to subdirectories - # so update context to allow it - if $::osfamily == 'RedHat' { - if ! defined(Exec["update_context_${docroot}"]) { - exec { "update_context_${docroot}": - command => "chcon -R -t httpd_sys_content_t ${docroot}/", - unless => "ls -lZ ${docroot} | grep httpd_sys_content_t", - path => '/bin:/usr/bin:/usr/local/bin:/usr/sbin', - require => Package['httpd'], - notify => Service['httpd'], - } - } - } - file { "${priority}-${name}.conf": path => "${httpd::params::vdir}/${priority}-${name}.conf", content => template($template),