bacula: Sync SELinux contexts with CentOS 6.6 and change mail command to use bacula's own bsmtp to prevent SELinux errors.
This commit is contained in:
parent
bb84d8b7da
commit
9ae45e3fef
3 changed files with 8 additions and 8 deletions
|
@ -215,11 +215,11 @@ class bacula::director($password=undef,
|
|||
mode => "0770",
|
||||
owner => "bacula",
|
||||
group => "bacula",
|
||||
seltype => "var_spool_t",
|
||||
seltype => "bacula_spool_t",
|
||||
require => Package["bacula-director"],
|
||||
}
|
||||
selinux::manage_fcontext { "${datadir}(/.*)?":
|
||||
type => "var_spool_t",
|
||||
type => "bacula_spool_t",
|
||||
before => File[$datadir],
|
||||
}
|
||||
if $datadir != "/srv/bacula" {
|
||||
|
@ -228,11 +228,11 @@ class bacula::director($password=undef,
|
|||
target => $datadir,
|
||||
owner => "bacula",
|
||||
group => "bacula",
|
||||
seltype => "var_spool_t",
|
||||
seltype => "bacula_spool_t",
|
||||
require => File[$datadir],
|
||||
}
|
||||
selinux::manage_fcontext { "/srv/bacula(/.*)?":
|
||||
type => "var_spool_t",
|
||||
type => "bacula_spool_t",
|
||||
before => File[$datadir],
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,8 +15,8 @@ Director {
|
|||
|
||||
Messages {
|
||||
Name = "Standard"
|
||||
MailCommand = "mail -s \"Bacula Message\" %r"
|
||||
OperatorCommand = "mail -s \"Bacula Operator Message\" %r"
|
||||
MailCommand = "bsmtp -h <%= @mail_server %> -s \"Bacula Message\" %r"
|
||||
OperatorCommand = "bsmtp -h <%= @mail_server %> -s \"Bacula Operator Message\" %r"
|
||||
mail = root = all, !skipped
|
||||
operator = root = mount
|
||||
append = "/var/log/bacula/bacula.log" = all, !skipped
|
||||
|
|
|
@ -24,8 +24,8 @@ Director {
|
|||
|
||||
Messages {
|
||||
Name = "Standard"
|
||||
MailCommand = "mail -s \"Bacula Message\" %r"
|
||||
OperatorCommand = "mail -s \"Bacula Operator Message\" %r"
|
||||
MailCommand = "bsmtp -h <%= @mail_server %> -s \"Bacula Message\" %r"
|
||||
OperatorCommand = "bsmtp -h <%= @mail_server %> -s \"Bacula Operator Message\" %r"
|
||||
mail = root = all, !skipped, !info
|
||||
operator = root = mount
|
||||
director = bacula-dir = all
|
||||
|
|
Loading…
Add table
Reference in a new issue