mirror of https://github.com/ceph/ceph-ansible.git
client: remove default value for pg_num in pools creation
trying to set the default value for pg_num to `hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'])` will break in case of external client nodes deployment. the `pg_num` attribute should be mandatory and be tested in future `ceph-validate` role. Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/2576/head
parent
0b803fc16a
commit
f60b049ae5
|
@ -92,8 +92,8 @@
|
|||
command: >
|
||||
{{ docker_exec_cmd | default('') }} ceph --cluster {{ cluster }}
|
||||
osd pool create {{ item.0.name }}
|
||||
{{ item.0.get('pg_num', hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num']) }}
|
||||
{{ item.0.pgp_num | default(item.0.pg_num) }}
|
||||
{{ item.0.pg_num }}
|
||||
{{ item.0.pgp_num }}
|
||||
{{ 'replicated_rule' if item.0.rule_name | default('replicated_rule') == '' else item.0.rule_name | default('replicated_rule') }}
|
||||
{{ 1 if item.0.type|default(1) == 'replicated' else 3 if item.0.type|default(1) == 'erasure' else item.0.type|default(1) }}
|
||||
{%- if (item.0.type | default("1") == '3' or item.0.type | default("1") == 'erasure') and item.0.erasure_profile != '' %}
|
||||
|
|
Loading…
Reference in New Issue