#openstack_glance_pool:
# name: images
# pg_num: "{{ osd_pool_default_pg_num }}"
-# rule_name: ""
+# pgp_num: "{{ osd_pool_default_pg_num }}"
+# type: replicated
+# rule_name: "0"
# size: ""
#openstack_cinder_pool:
# name: volumes
# pg_num: "{{ osd_pool_default_pg_num }}"
-# rule_name: ""
+# pgp_num: "{{ osd_pool_default_pg_num }}"
+# type: replicated
+# rule_name: "0"
# size: ""
#openstack_nova_pool:
# name: vms
# pg_num: "{{ osd_pool_default_pg_num }}"
-# rule_name: ""
+# pgp_num: "{{ osd_pool_default_pg_num }}"
+# type: replicated
+# rule_name: "0"
# size: ""
#openstack_cinder_backup_pool:
# name: backups
# pg_num: "{{ osd_pool_default_pg_num }}"
-# rule_name: ""
+# pgp_num: "{{ osd_pool_default_pg_num }}"
+# type: replicated
+# rule_name: "0"
# size: ""
#openstack_gnocchi_pool:
# name: metrics
# pg_num: "{{ osd_pool_default_pg_num }}"
-# rule_name: ""
+# pgp_num: "{{ osd_pool_default_pg_num }}"
+# type: replicated
+# rule_name: "0"
# size: ""
#openstack_pools:
openstack_glance_pool:
name: images
pg_num: "{{ osd_pool_default_pg_num }}"
- rule_name: ""
+ pgp_num: "{{ osd_pool_default_pg_num }}"
+ type: replicated
+ rule_name: "0"
size: ""
openstack_cinder_pool:
name: volumes
pg_num: "{{ osd_pool_default_pg_num }}"
- rule_name: ""
+ pgp_num: "{{ osd_pool_default_pg_num }}"
+ type: replicated
+ rule_name: "0"
size: ""
openstack_nova_pool:
name: vms
pg_num: "{{ osd_pool_default_pg_num }}"
- rule_name: ""
+ pgp_num: "{{ osd_pool_default_pg_num }}"
+ type: replicated
+ rule_name: "0"
size: ""
openstack_cinder_backup_pool:
name: backups
pg_num: "{{ osd_pool_default_pg_num }}"
- rule_name: ""
+ pgp_num: "{{ osd_pool_default_pg_num }}"
+ type: replicated
+ rule_name: "0"
size: ""
openstack_gnocchi_pool:
name: metrics
pg_num: "{{ osd_pool_default_pg_num }}"
- rule_name: ""
+ pgp_num: "{{ osd_pool_default_pg_num }}"
+ type: replicated
+ rule_name: "0"
size: ""
openstack_pools:
---
- name: create openstack pool(s)
- command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} osd pool create {{ item.name }} {{ item.pg_num }} {{ item.rule_name|default('') }} {{ item.size|default('') }}"
+ command: >
+ "{{ docker_exec_cmd }} ceph --cluster {{ cluster }}
+ osd pool create {{ item.name }}
+ {{ item.pg_num }}
+ {{ item.pgp_num | default(item.pg_num) }}
+ {{ item.rule_name|default("0") }}
+ {{ item.type|default("replicated") }}
+ {{ item.size|default('') }}"
with_items: "{{ openstack_pools | unique }}"
changed_when: false