added all file controls
This commit is contained in:
@@ -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