added all file controls
This commit is contained in:
@@ -37,7 +37,7 @@ $ae_user_shell = '/bin/false',
|
||||
# configuration files
|
||||
$ae_manage_cfg = false,
|
||||
$ae_manage_dirs = true,
|
||||
|
||||
$ae_allow_user_dirs = false,
|
||||
|
||||
) {
|
||||
|
||||
@@ -74,6 +74,9 @@ $ae_magic_file_erb = 'cd_apache/magic.erb'
|
||||
$ae_ssl_file = "${ae_conf_d_dir}/ssl.conf"
|
||||
$ae_ssl_file_erb = 'cd_apache/ssl_conf.erb'
|
||||
$ae_autoindex_file = "${ae_conf_d_dir}/autoindex.conf"
|
||||
$ae_autoindex_erb = 'cd_apache/autoindex_conf.erb'
|
||||
$ae_userdir_file = "${ae_conf_d_dir}/userdir.conf"
|
||||
$ae_userdir_erb = 'cd_apache/userdir_conf.erb'
|
||||
|
||||
# includes must be last
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ class cd_apache::server::files (
|
||||
|
||||
# manage magic file
|
||||
|
||||
file { $ae_magic_file:
|
||||
file { $ae_magic_file:
|
||||
ensure => file,
|
||||
path => $ae_magic_file,
|
||||
owner => 'root',
|
||||
@@ -64,7 +64,7 @@ class cd_apache::server::files (
|
||||
|
||||
# manage main ssl config file
|
||||
|
||||
file { $ae_ssl_file:
|
||||
file { $ae_ssl_file:
|
||||
ensure => file,
|
||||
path => $ae_ssl_file,
|
||||
owner => 'root',
|
||||
@@ -78,4 +78,39 @@ class cd_apache::server::files (
|
||||
notify => Service['httpd'],
|
||||
}
|
||||
|
||||
# manage autoindex.conf
|
||||
|
||||
file { $ae_autoindex_file:
|
||||
ensure => file,
|
||||
path => $ae_autoindex_file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => httpd_config_t,
|
||||
seluser => system_u,
|
||||
content => template($ae_autoindex_erb),
|
||||
notify => Service['httpd'],
|
||||
}
|
||||
|
||||
if $ae_allow_user_dirs == true {
|
||||
|
||||
# manage userdir.conf
|
||||
|
||||
file { $ae_userdir_file:
|
||||
ensure => file,
|
||||
path => $ae_userdir_file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => httpd_config_t,
|
||||
seluser => system_u,
|
||||
content => template($ae_userdir_erb),
|
||||
notify => Service['httpd'],
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user