Browse Source

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

changes/36/782936/1
Zuul 1 month ago
committed by Gerrit Code Review
parent
commit
d0e5c8263c
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      tripleo_ansible/roles/tripleo_ceph_work_dir/tasks/build_keys.yml

+ 10
- 1
tripleo_ansible/roles/tripleo_ceph_work_dir/tasks/build_keys.yml View File

@ -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