Browse Source

Merge "Build osd caps section when there's at least >= 1 pool"

changes/24/778624/1
Zuul 8 months ago
committed by Gerrit Code Review
parent
commit
abdcbbac44
  1. 11
      tripleo_ansible/roles/tripleo_ceph_work_dir/tasks/build_keys.yml

11
tripleo_ansible/roles/tripleo_ceph_work_dir/tasks/build_keys.yml

@ -29,7 +29,16 @@
- name: set openstack client caps
set_fact:
osp_client_caps: {'mgr': 'allow *', 'mon': 'profile rbd', 'osd': "{{ profiles | regex_replace('\\, $', '') }}"}
osp_client_default_caps: {'mgr': 'allow *', 'mon': 'profile rbd'}
- name: set openstack client osd(s) caps
set_fact:
osp_client_osd_caps: {'osd': "{{ profiles | regex_replace('\\, $', '') }}"}
when: profiles|length > 0
- name: Combine caps
set_fact:
osp_client_caps: "{{ osp_client_default_caps | combine(osp_client_osd_caps|default({})) }}"
- name: set openstack client key
set_fact:

Loading…
Cancel
Save