Set proper permission for /opt/platform/sysinv

Based on reviews https://review.opendev.org/#/c/692439/2 and
https://review.opendev.org/#/c/691714 the owner of the
/opt/platform/sysinv folder was the "sysinv" user.

However, in https://review.opendev.org/#/c/694774/1 the
owner what changed to root:root. This cause the sysinv
conductor processs to not be able to write to this folder
as it does not have proper permissions.

The solution is to change the folder owner back to sysinv.

Change-Id: I74962ea69dfd6e9ea24e4fa51fc4e8bb9b6325ac
Closes-bug: 1853642
Signed-off-by: Stefan Dinescu <stefan.dinescu@windriver.com>
This commit is contained in:
Stefan Dinescu 2019-11-29 13:05:10 +02:00
parent f06c354e08
commit 05f770db5f

View File

@ -29,15 +29,15 @@
- name: Ensure replicated config parent directories exist
file:
path: "{{ item }}"
path: "{{ item.path }}"
state: directory
recurse: yes
owner: root
group: root
owner: "{{ item.owner }}"
group: "{{ item.group }}"
mode: 0755
with_items:
- "{{ config_permdir }}"
- "{{ sysinv_permdir }}"
- { path: "{{ config_permdir }}", owner: "root", group: "root" }
- { path: "{{ sysinv_permdir }}", owner: "sysinv", group: "sysinv" }
- name: Get list of new config files
find: