sasl: Don't create /var/run/saslauthd manually and fix depency error from saslauthd tmpfiles config on CentOS 7.
This commit is contained in:
parent
1ce5aeda9e
commit
69d4c81753
1 changed files with 8 additions and 7 deletions
|
@ -137,14 +137,14 @@ class sasl::saslauthd {
|
||||||
if $user {
|
if $user {
|
||||||
case $::operatingsystem {
|
case $::operatingsystem {
|
||||||
"centos","fedora","redhat": {
|
"centos","fedora","redhat": {
|
||||||
file { "/var/run/saslauthd":
|
|
||||||
ensure => directory,
|
|
||||||
mode => "0775",
|
|
||||||
owner => "root",
|
|
||||||
group => $user,
|
|
||||||
before => Service["saslauthd"],
|
|
||||||
}
|
|
||||||
if versioncmp($::operatingsystemrelease, "7") < 0 {
|
if versioncmp($::operatingsystemrelease, "7") < 0 {
|
||||||
|
file { "/var/run/saslauthd":
|
||||||
|
ensure => directory,
|
||||||
|
mode => "0775",
|
||||||
|
owner => "root",
|
||||||
|
group => $user,
|
||||||
|
before => Service["saslauthd"],
|
||||||
|
}
|
||||||
augeas { "set-saslauthd-user":
|
augeas { "set-saslauthd-user":
|
||||||
context => "/files/etc/sysconfig/saslauthd",
|
context => "/files/etc/sysconfig/saslauthd",
|
||||||
changes => "set DAEMONOPTS '\"--user ${user}\"'",
|
changes => "set DAEMONOPTS '\"--user ${user}\"'",
|
||||||
|
@ -174,6 +174,7 @@ class sasl::saslauthd {
|
||||||
owner => "root",
|
owner => "root",
|
||||||
group => "root",
|
group => "root",
|
||||||
require => Class["sasl::client"],
|
require => Class["sasl::client"],
|
||||||
|
before => Service["saslauthd"],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue