No syslog user in Debian

manifests/swift.pp attemps to create /var/log/swift using the syslog user
in Debian, but this user doesn't exist in this OS (it only exists in
Ubuntu). This patch fixes this.

Change-Id: I2ef53b6f5865eb0d42834d9c4580caea530d54c1
This commit is contained in:
Thomas Goirand 2018-05-04 09:56:26 +02:00
parent 8fe6747ab0
commit fabd6bbd00

View File

@ -26,9 +26,16 @@ class openstack_integration::swift {
# Ubuntu/Debian requires particular permissions for rsyslog to work
if $::osfamily == 'Debian' {
File<| title == '/var/log/swift' |> {
owner => 'syslog',
group => 'adm'
if $::os_package_type == 'debian' {
File<| title == '/var/log/swift' |> {
owner => 'root',
group => 'adm'
}
} else {
File<| title == '/var/log/swift' |> {
owner => 'syslog',
group => 'adm'
}
}
}