mirror of https://github.com/ceph/ceph-ansible.git
Allow configurable pg_num for OpenStack pools
Currently the OpenStack pools that get created use the default pg_num. This commit updates the ceph-mon role to allow the pg_num for each pool to be customised.pull/381/head
parent
792f839f07
commit
835951b3d0
|
@ -36,16 +36,23 @@ secure_cluster_flags:
|
||||||
#############
|
#############
|
||||||
|
|
||||||
openstack_config: false
|
openstack_config: false
|
||||||
openstack_glance_pool: images
|
openstack_glance_pool:
|
||||||
openstack_cinder_pool: volumes
|
name: images
|
||||||
openstack_nova_pool: vms
|
pg_num: "{{ pool_default_pg_num }}"
|
||||||
openstack_cinder_backup_pool: backups
|
openstack_cinder_pool:
|
||||||
|
name: volumes
|
||||||
|
pg_num: "{{ pool_default_pg_num }}"
|
||||||
|
openstack_nova_pool:
|
||||||
|
name: vms
|
||||||
|
pg_num: "{{ pool_default_pg_num }}"
|
||||||
|
openstack_cinder_backup_pool:
|
||||||
|
name: backups
|
||||||
|
pg_num: "{{ pool_default_pg_num }}"
|
||||||
|
|
||||||
openstack_keys:
|
openstack_keys:
|
||||||
- { name: client.glance, value: "mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool={{ openstack_glance_pool }}'" }
|
- { name: client.glance, value: "mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool={{ openstack_glance_pool.name }}'" }
|
||||||
- { name: client.cinder, value: "mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool={{ openstack_cinder_pool }}, allow rwx pool={{ openstack_nova_pool }}, allow rx pool={{ openstack_glance_pool }}'" }
|
- { name: client.cinder, value: "mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool={{ openstack_cinder_pool.name }}, allow rwx pool={{ openstack_nova_pool.name }}, allow rx pool={{ openstack_glance_pool.name }}'" }
|
||||||
- { name: client.cinder-backup, value: "mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool={{ openstack_cinder_backup_pool }}'" }
|
- { name: client.cinder-backup, value: "mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool={{ openstack_cinder_backup_pool.name }}'" }
|
||||||
|
|
||||||
|
|
||||||
##########
|
##########
|
||||||
# DOCKER #
|
# DOCKER #
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: create openstack pool
|
- name: create openstack pool
|
||||||
command: rados mkpool {{ item }}
|
command: ceph osd pool create {{ item.name }} {{ item.pg_num }}
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ openstack_glance_pool }}"
|
- "{{ openstack_glance_pool }}"
|
||||||
- "{{ openstack_cinder_pool }}"
|
- "{{ openstack_cinder_pool }}"
|
||||||
|
|
Loading…
Reference in New Issue