]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Revert "ceph-rgw: remove ceph_pool state and default value"
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 25 Sep 2020 19:01:16 +0000 (21:01 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 28 Sep 2020 20:47:45 +0000 (16:47 -0400)
This reverts commit ba3512a8fcffdbbd40fbd41f4e16b0d3ca1ca328.

(cherry picked from commit bf7b044c9a7b23fa912331cd24896d883ace8f0b)
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-rgw/tasks/rgw_create_pools.yml

index 0099c6fa73fc92185e5a453892e9bc9e35e4845c..7a11f4766eeae89d4abaad67d535929a37f9aadd 100644 (file)
@@ -30,6 +30,7 @@
 - name: create ec pools for rgw
   ceph_pool:
     name: "{{ item.key }}"
+    state: present
     cluster: "{{ cluster }}"
     pg_num: "{{ item.value.pg_num | default(osd_pool_default_pg_num) }}"
     pgp_num: "{{ item.value.pg_num | default(osd_pool_default_pg_num) }}"
 - name: create replicated pools for rgw
   ceph_pool:
     name: "{{ item.key }}"
+    state: present
     cluster: "{{ cluster }}"
     pg_num: "{{ item.value.pg_num | default(osd_pool_default_pg_num) }}"
     pgp_num: "{{ item.value.pg_num | default(osd_pool_default_pg_num) }}"
-    size: "{{ item.value.size | default(omit) }}"
+    size: "{{ item.value.size | default(osd_pool_default_size) }}"
     pool_type: replicated
-    rule_name: "{{ item.value.rule_name | default(omit) }}"
+    rule_name: "{{ item.value.rule_name | default(ceph_osd_pool_default_crush_rule_name) }}"
     application: rgw
   loop: "{{ rgw_create_pools | dict2items }}"
   delegate_to: "{{ groups[mon_group_name][0] }}"