Skip to content

Commit

Permalink
Revert "ceph-rgw: remove ceph_pool state and default value"
Browse files Browse the repository at this point in the history
This reverts commit ba3512a.

(cherry picked from commit bf7b044)
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
  • Loading branch information
guits authored and dsavineau committed Sep 28, 2020
1 parent a8f6324 commit 5538dd8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions roles/ceph-rgw/tasks/rgw_create_pools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}"
Expand All @@ -48,12 +49,13 @@
- 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] }}"
Expand Down

0 comments on commit 5538dd8

Please sign in to comment.