]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-validate: Expand templates in rgw_create_pools
authorBenoît Knecht <bknecht@protonmail.ch>
Mon, 11 May 2020 14:21:55 +0000 (16:21 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 11 May 2020 15:51:27 +0000 (11:51 -0400)
Same fix as `ceph-rgw` for `rgw_create_pools` pool names that contain Jinja
templates.

See #5348 for details.

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
roles/ceph-validate/tasks/check_rgw_pools.yml

index 7f59046e361e0b67cd4285b01fb4ea655ace1e0b..a4f5412c7e8eb15c936891839a6661be90abcba8 100644 (file)
@@ -2,7 +2,7 @@
 - name: fail if ec_profile is not set for ec pools
   fail:
     msg: "ec_profile must be set for ec pools"
-  with_dict: "{{ rgw_create_pools }}"
+  loop: "{{ rgw_create_pools | dict2items }}"
   when:
     - item.value.type is defined
     - item.value.type == 'ec'
@@ -11,7 +11,7 @@
 - name: fail if ec_k is not set for ec pools
   fail:
     msg: "ec_k must be set for ec pools"
-  with_dict: "{{ rgw_create_pools }}"
+  loop: "{{ rgw_create_pools | dict2items }}"
   when:
     - item.value.type is defined
     - item.value.type == 'ec'
@@ -20,7 +20,7 @@
 - name: fail if ec_m is not set for ec pools
   fail:
     msg: "ec_m must be set for ec pools"
-  with_dict: "{{ rgw_create_pools }}"
+  loop: "{{ rgw_create_pools | dict2items }}"
   when:
     - item.value.type is defined
     - item.value.type == 'ec'