From c61c052fd1aacfc248bd53bcf713b4db91314172 Mon Sep 17 00:00:00 2001 From: Quique Llorente Date: Wed, 13 Feb 2019 09:44:52 +0100 Subject: [PATCH] Use tripleo-admin as octavia groups_vars owner Now we use tripleo-admin as user and it does not have access to /var/lib/mistral, this change the owner of the group_vars dir to this user. Closes-Bug: #1815872 Change-Id: I06b184483a05b7b79b8ccf867b373429e698f396 --- deployment/octavia/octavia-deployment-config.j2.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deployment/octavia/octavia-deployment-config.j2.yaml b/deployment/octavia/octavia-deployment-config.j2.yaml index 123a0dc1a8..718758fb66 100644 --- a/deployment/octavia/octavia-deployment-config.j2.yaml +++ b/deployment/octavia/octavia-deployment-config.j2.yaml @@ -246,9 +246,11 @@ outputs: set_fact: octavia_ansible_group_vars: { get_attr: [OctaviaVars, value, vars] } - name: Make needed directories on the undercloud + become: true file: path: "{{item}}" state: directory + owner: "{{ ansible_user }}" with_items: - "{{ octavia_ansible_group_vars.octavia_local_tmpdir }}" - "{{ octavia_ansible_group_vars.octavia_group_vars_dir }}"