mirror of https://github.com/ceph/ceph-ansible.git
openstack: use ceph_keyring_permissions by default
Otherwise this task fails if no permission is set on the item. Previously the code omited the mode parameter if it was not set, but this was lost with commitpull/5995/headab370b6ad8
. Signed-off-by: Gaudenz Steinlin <gaudenz.steinlin@cloudscale.ch> (cherry picked from commit79ff79c422
)
parent
f344fe6f92
commit
a1ff05b26e
|
@ -115,9 +115,9 @@
|
|||
copy:
|
||||
dest: "/etc/ceph/{{ cluster }}.{{ item.0.item.name }}.keyring"
|
||||
content: "{{ item.0.stdout + '\n' }}"
|
||||
owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
|
||||
group: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
|
||||
mode: "{{ item.0.item.mode }}"
|
||||
owner: "{{ ceph_uid if containerized_deployment | bool else 'ceph' }}"
|
||||
group: "{{ ceph_uid if containerized_deployment | bool else 'ceph' }}"
|
||||
mode: "{{ item.0.item.mode | default(ceph_keyring_permissions) }}"
|
||||
with_nested:
|
||||
- "{{ _osp_keys.results }}"
|
||||
- "{{ groups[mon_group_name] }}"
|
||||
|
|
Loading…
Reference in New Issue