bacula: Fixed SELinux contexts from bacula::web.
This commit is contained in:
parent
dde1b7de0f
commit
e1f85fa427
1 changed files with 13 additions and 0 deletions
|
@ -473,6 +473,16 @@ class bacula::web($htaccess,
|
|||
include php::gd
|
||||
include php::pdo
|
||||
|
||||
selinux::manage_fcontext { "/usr/local/share/bacula-web(/.*)?":
|
||||
type => "httpd_sys_content_t",
|
||||
before => Util::Extract::Tar["/usr/local/share/bacula-web"],
|
||||
}
|
||||
selinux::manage_fcontext { "/usr/local/share/bacula-web/application/view/cache(/.*)?":
|
||||
type => "httpd_sys_rw_content_t",
|
||||
require => Selinux::Manage_fcontext["/usr/local/share/bacula-web(/.*)?"],
|
||||
before => Util::Extract::Tar["/usr/local/share/bacula-web"],
|
||||
}
|
||||
|
||||
file { "/usr/local/src/bacula-web.tar.gz":
|
||||
ensure => present,
|
||||
source => "puppet:///files/packages/${bacula_package_latest}",
|
||||
|
@ -493,6 +503,7 @@ class bacula::web($htaccess,
|
|||
mode => "0644",
|
||||
owner => "root",
|
||||
group => "root",
|
||||
seltype => "httpd_sys_content_t",
|
||||
require => Util::Extract::Tar["/usr/local/share/bacula-web"],
|
||||
}
|
||||
|
||||
|
@ -502,6 +513,7 @@ class bacula::web($htaccess,
|
|||
mode => "0644",
|
||||
owner => "root",
|
||||
group => "root",
|
||||
seltype => "httpd_sys_content_t",
|
||||
require => File["/usr/local/share/bacula-web/.htaccess"],
|
||||
}
|
||||
|
||||
|
@ -510,6 +522,7 @@ class bacula::web($htaccess,
|
|||
mode => "0770",
|
||||
owner => $apache::sslserver::group,
|
||||
group => $apache::sslserver::group,
|
||||
seltype => "httpd_sys_rw_content_t",
|
||||
require => Util::Extract::Tar["/usr/local/share/bacula-web"],
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue