2015-01-30 20:34:35 +08:00
|
|
|
---
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: create openstack pool
|
2015-08-17 23:14:26 +08:00
|
|
|
command: ceph 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
|
2015-10-17 07:55:31 +08:00
|
|
|
command: ceph auth get-or-create {{ item.name }} {{ item.value }} -o /etc/ceph/ceph.{{ item.name }}.keyring
|
|
|
|
args:
|
|
|
|
creates: /etc/ceph/ceph.{{ 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
|