mirror of https://github.com/ceph/ceph-ansible.git
Fix backward compat with old cephfs_pools format
Previously cephfs_pools items used to have a pgs: key but not
pgp_num: nor pg_num:
Signed-off-by: Giulio Fidente <gfidente@redhat.com>
(cherry picked from commit edd1420217
)
pull/4261/head
parent
bbfd6965e0
commit
985165dbf7
|
@ -26,7 +26,7 @@
|
||||||
{{ hostvars[groups[mon_group_name][0]]['container_exec_cmd'] | default('') }} ceph --cluster {{ cluster }}
|
{{ hostvars[groups[mon_group_name][0]]['container_exec_cmd'] | default('') }} ceph --cluster {{ cluster }}
|
||||||
osd pool create {{ item.name }}
|
osd pool create {{ item.name }}
|
||||||
{{ item.pg_num | default(osd_pool_default_pg_num) }}
|
{{ item.pg_num | default(osd_pool_default_pg_num) }}
|
||||||
{{ item.pgp_num | default(item.pg_num) }}
|
{{ item.pgp_num | default(item.pg_num) | default(osd_pool_default_pg_num) }}
|
||||||
{{ 'replicated_rule' if not item.rule_name | default('replicated_rule') else item.rule_name | default('replicated_rule') }}
|
{{ 'replicated_rule' if not item.rule_name | default('replicated_rule') else item.rule_name | default('replicated_rule') }}
|
||||||
{{ 1 if item.type|default(1) == 'replicated' else 3 if item.type|default(1) == 'erasure' else item.type|default(1) }}
|
{{ 1 if item.type|default(1) == 'replicated' else 3 if item.type|default(1) == 'erasure' else item.type|default(1) }}
|
||||||
{%- if (item.type | default("1") == '3' or item.type | default("1") == 'erasure') and item.erasure_profile != '' %}
|
{%- if (item.type | default("1") == '3' or item.type | default("1") == 'erasure') and item.erasure_profile != '' %}
|
||||||
|
|
Loading…
Reference in New Issue