From fabd6bbd00435ecfb224d4d72a961f4f529bbf83 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Fri, 4 May 2018 09:56:26 +0200 Subject: [PATCH] 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 --- manifests/swift.pp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/manifests/swift.pp b/manifests/swift.pp index 953562f84..18930fc15 100644 --- a/manifests/swift.pp +++ b/manifests/swift.pp @@ -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' + } } }