added more dirs

This commit is contained in:
Arne Teuke
2017-06-19 15:54:57 +01:00
parent 1716f1654b
commit bbcb22214b
2 changed files with 30 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ $ae_logs_dir = "${ae_main_dir}/logs"
$ae_usr_lib_dir = '/usr/lib64/httpd'
$ae_usr_mods_dir = "${ae_usr_lib_dir}/modules"
$ae_mods_dir = "${ae_main_dir}/modules"
$ae_run_dir = '/var/run/httpd'

View File

@@ -158,5 +158,34 @@ class cd_apache::server::dirs (
seluser => system_u,
}
# run dir
file { $ae_run_dir:
ensure => directory,
path => $ae_run_dir,
owner => 'root',
group => 'root',
mode => '0710',
selrange => s0,
selrole => object_r,
seltype => httpd_var_run_t,
seluser => system_u,
}
# run link
file { $ae_run_link:
ensure => link,
path => $ae_run_link,
target => $ae_run_dir,
owner => 'root',
group => 'root',
mode => '0777',
selrange => s0,
selrole => object_r,
seltype => httpd_var_run_t,
seluser => system_u,
}
}
}