mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #984 from thotypous/master
Allow deployer to customize openstack poolspull/997/head
commit
eb8b59f409
|
@ -61,6 +61,12 @@ dummy:
|
||||||
# name: backups
|
# name: backups
|
||||||
# pg_num: "{{ pool_default_pg_num }}"
|
# pg_num: "{{ pool_default_pg_num }}"
|
||||||
|
|
||||||
|
#openstack_pools:
|
||||||
|
# - "{{ openstack_glance_pool }}"
|
||||||
|
# - "{{ openstack_cinder_pool }}"
|
||||||
|
# - "{{ openstack_nova_pool }}"
|
||||||
|
# - "{{ openstack_cinder_backup_pool }}"
|
||||||
|
|
||||||
#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 }}'" }
|
# - { 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.name }}, allow rwx pool={{ openstack_nova_pool.name }}, allow rx 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.name }}, allow rwx pool={{ openstack_nova_pool.name }}, allow rx pool={{ openstack_glance_pool.name }}'" }
|
||||||
|
|
|
@ -53,6 +53,12 @@ openstack_cinder_backup_pool:
|
||||||
name: backups
|
name: backups
|
||||||
pg_num: "{{ pool_default_pg_num }}"
|
pg_num: "{{ pool_default_pg_num }}"
|
||||||
|
|
||||||
|
openstack_pools:
|
||||||
|
- "{{ openstack_glance_pool }}"
|
||||||
|
- "{{ openstack_cinder_pool }}"
|
||||||
|
- "{{ openstack_nova_pool }}"
|
||||||
|
- "{{ openstack_cinder_backup_pool }}"
|
||||||
|
|
||||||
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 }}'" }
|
- { 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.name }}, allow rwx pool={{ openstack_nova_pool.name }}, allow rx 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.name }}, allow rwx pool={{ openstack_nova_pool.name }}, allow rx pool={{ openstack_glance_pool.name }}'" }
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
---
|
---
|
||||||
- name: create openstack pool
|
- name: create openstack pool
|
||||||
command: ceph --cluster {{ cluster }} osd pool create {{ item.name }} {{ item.pg_num }}
|
command: ceph --cluster {{ cluster }} osd pool create {{ item.name }} {{ item.pg_num }}
|
||||||
with_items:
|
with_items: "{{ openstack_pools }}"
|
||||||
- "{{ openstack_glance_pool }}"
|
|
||||||
- "{{ openstack_cinder_pool }}"
|
|
||||||
- "{{ openstack_nova_pool }}"
|
|
||||||
- "{{ openstack_cinder_backup_pool }}"
|
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
|
@ -13,6 +9,6 @@
|
||||||
command: ceph --cluster {{ cluster }} auth get-or-create {{ item.name }} {{ item.value }} -o /etc/ceph/{{ cluster }}.{{ item.name }}.keyring
|
command: ceph --cluster {{ cluster }} auth get-or-create {{ item.name }} {{ item.value }} -o /etc/ceph/{{ cluster }}.{{ item.name }}.keyring
|
||||||
args:
|
args:
|
||||||
creates: /etc/ceph/{{ cluster }}.{{ item.name }}.keyring
|
creates: /etc/ceph/{{ cluster }}.{{ item.name }}.keyring
|
||||||
with_items: openstack_keys
|
with_items: "{{ openstack_keys }}"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: cephx
|
when: cephx
|
||||||
|
|
Loading…
Reference in New Issue