diff options
Diffstat (limited to 'manifests/centos.pp')
-rw-r--r-- | manifests/centos.pp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/manifests/centos.pp b/manifests/centos.pp index 930bbdd..69f11ab 100644 --- a/manifests/centos.pp +++ b/manifests/centos.pp @@ -6,7 +6,7 @@ class apache::centos inherits apache::package { name => 'httpd', } Service[apache]{ - name => 'httpd', + name => 'httpd', restart => '/etc/init.d/httpd graceful', } File[vhosts_dir]{ @@ -37,9 +37,11 @@ class apache::centos inherits apache::package { '/var/www/vhosts/[^/]*/non_public(/.*)?', '/var/www/vhosts/[^/]*/g2data(/.*)?', '/var/www/vhosts/[^/]*/upload(/.*)?' ]: - setype => 'httpd_sys_script_rw_t'; + require => Package['apache'], + setype => 'httpd_sys_script_rw_t'; '/var/www/vhosts/[^/]*/logs(/.*)?': - setype => 'httpd_log_t'; + require => Package['apache'], + setype => 'httpd_log_t'; } } file{'apache_service_config': |