mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #381 from git-harry/openstack-pg-num
Allow configurable pg_num for OpenStack poolspull/382/head
commit
861d7296ef
|
@ -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