2015-01-30 20:34:35 +08:00
|
|
|
---
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: create openstack pool
|
2016-03-29 21:37:31 +08:00
|
|
|
command: ceph --cluster {{ cluster }} osd pool create {{ item.name }} {{ item.pg_num }}
|
2015-01-30 20:34:35 +08:00
|
|
|
with_items:
|
|
|
|
- "{{ openstack_glance_pool }}"
|
|
|
|
- "{{ openstack_cinder_pool }}"
|
|
|
|
- "{{ openstack_nova_pool }}"
|
|
|
|
- "{{ openstack_cinder_backup_pool }}"
|
2015-06-26 06:26:03 +08:00
|
|
|
changed_when: false
|
2015-07-29 00:21:15 +08:00
|
|
|
failed_when: false
|
2015-01-30 20:34:35 +08:00
|
|
|
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: create openstack keys
|
2016-03-29 21:37:31 +08:00
|
|
|
command: ceph --cluster {{ cluster }} auth get-or-create {{ item.name }} {{ item.value }} -o /etc/ceph/{{ cluster }}.{{ item.name }}.keyring
|
2015-10-17 07:55:31 +08:00
|
|
|
args:
|
2016-03-29 21:37:31 +08:00
|
|
|
creates: /etc/ceph/{{ cluster }}.{{ item.name }}.keyring
|
2015-01-30 20:34:35 +08:00
|
|
|
with_items: openstack_keys
|
2015-06-26 06:26:03 +08:00
|
|
|
changed_when: false
|
2016-02-27 05:39:27 +08:00
|
|
|
when: cephx
|