ceph-ansible/roles/ceph-mon/tasks/openstack_config.yml

15 lines
530 B
YAML
Raw Normal View History

---
- name: create openstack pool
command: ceph --cluster {{ cluster }} osd pool create {{ item.name }} {{ item.pg_num }}
with_items: "{{ openstack_pools | unique }}"
changed_when: false
failed_when: false
- name: create openstack keys
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:
creates: /etc/ceph/{{ cluster }}.{{ item.name }}.keyring
with_items: "{{ openstack_keys }}"
changed_when: false
when: cephx