2015-01-30 20:34:35 +08:00
|
|
|
---
|
|
|
|
- name: Create OpenStack pool
|
|
|
|
command: rados mkpool {{ item }}
|
|
|
|
with_items:
|
|
|
|
- "{{ openstack_glance_pool }}"
|
|
|
|
- "{{ openstack_cinder_pool }}"
|
|
|
|
- "{{ openstack_nova_pool }}"
|
|
|
|
- "{{ openstack_cinder_backup_pool }}"
|
2015-01-30 23:16:18 +08:00
|
|
|
ignore_errors: True
|
2015-04-09 00:46:54 +08:00
|
|
|
changed_when: False
|
2015-01-30 20:34:35 +08:00
|
|
|
|
|
|
|
- name: Create OpenStack keys
|
2015-03-19 19:21:29 +08:00
|
|
|
command: >
|
|
|
|
ceph auth get-or-create {{ item.name }} {{ item.value }} -o /etc/ceph/ceph.{{ item.name }}.keyring
|
|
|
|
creates=/etc/ceph/ceph.{{ item.name }}.keyring
|
2015-01-30 20:34:35 +08:00
|
|
|
with_items: openstack_keys
|
2015-04-09 00:46:54 +08:00
|
|
|
changed_when: False
|