mon: change application pool support

If openstack_pools contains an application key it will be used to apply
this application pool type to a pool.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1562220
Signed-off-by: Sébastien Han <seb@redhat.com>
pull/2544/merge
Sébastien Han 2018-04-26 19:55:48 +02:00 committed by Guillaume Abrioux
parent 75ed437d4e
commit 43e23ffe4d
1 changed files with 3 additions and 2 deletions

View File

@ -26,12 +26,13 @@
when: when:
- item.1.get('rc', 0) != 0 - item.1.get('rc', 0) != 0
- name: assign rbd application to pool(s) - name: assign application to pool(s)
command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} osd pool application enable {{ item.name }} rbd" command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} osd pool application enable {{ item.name }} {{ item.application }}"
with_items: "{{ openstack_pools | unique }}" with_items: "{{ openstack_pools | unique }}"
changed_when: false changed_when: false
when: when:
- ceph_release_num[ceph_release] >= ceph_release_num['luminous'] - ceph_release_num[ceph_release] >= ceph_release_num['luminous']
- item.application is defined
- name: create openstack cephx key(s) - name: create openstack cephx key(s)
ceph_key: ceph_key: