From aaf7465762f6e85e17f6e5fada3283af17392a75 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Fri, 18 Aug 2017 22:12:48 +0100 Subject: [PATCH] playbooks: os-swift-install: Use correct group name on openSUSE The syslog user on openSUSE belongs to the 'users' group. Change-Id: I82bbb2fcdc0fe57f52a812989b25fa16b94bfe68 --- playbooks/os-swift-install.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playbooks/os-swift-install.yml b/playbooks/os-swift-install.yml index 93d25f6acc..8067e983c4 100644 --- a/playbooks/os-swift-install.yml +++ b/playbooks/os-swift-install.yml @@ -35,7 +35,9 @@ - src: "/openstack/log/{{ inventory_hostname }}-swift" dest: "/var/log/swift" owner: "syslog" - group: "syslog" + # NOTE(hwoarang) The syslog user on openSUSE belongs to the 'users' + # group. There is no dedicated syslog group. + group: "{{ (ansible_pkg_mgr == 'zypper') | ternary ('users', 'syslog') }}" - include: common-tasks/package-cache-proxy.yml # If we're using ceilometer then swift needs a rabbitmq/vhost & usera