Skip to content

Commit bfa5908

Browse files
committed
manila, cinder: fix permissions when fetching conf files
When fetching the configuration files of cinder and manila through scp, make sure the files are given wider permissions so that the subsequent tasks don't need to be run with become: yes.
1 parent 28afcc6 commit bfa5908

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/roles/cinder_adoption/tasks/cinder_volume_netapp_nfs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
CONTROLLER1_SCP="{{ controller1_ssh | regex_replace('^ssh', 'scp')}}"
88
${CONTROLLER1_SCP}:{{ cinder_tripleo_path }} {{ cinder_conf_path }}
99
${CONTROLLER1_SCP}:{{ cinder_tripleo_nfs_shares_config_path }} {{ cinder_nfs_shares_conf_path }}
10+
chmod a+r {{ cinder_conf_path }} {{ cinder_nfs_shares_conf_path }}
1011
1112
- name: Extract Netapp data from cinder.conf
1213
ansible.builtin.set_fact:

tests/roles/manila_adoption/tasks/netapp.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
{{ shell_header }}
77
CONTROLLER1_SCP="{{ controller1_ssh | regex_replace('^ssh', 'scp')}}"
88
${CONTROLLER1_SCP}:{{ manila_tripleo_path }} {{ manila_conf_path }}
9+
chmod a+r {{ manila_conf_path }}
910
1011
- name: Extract Netapp data from manila.conf
1112
ansible.builtin.set_fact:

0 commit comments

Comments
 (0)