]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
mon: change application pool support
authorSébastien Han <seb@redhat.com>
Thu, 26 Apr 2018 17:55:48 +0000 (19:55 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 30 Apr 2018 07:42:58 +0000 (09:42 +0200)
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>
roles/ceph-mon/tasks/openstack_config.yml

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