2014-03-04 02:08:51 +08:00
|
|
|
---
|
2014-09-05 03:14:11 +08:00
|
|
|
- include: deploy_monitors.yml
|
2014-03-04 02:08:51 +08:00
|
|
|
|
|
|
|
# Wait for mon discovery and quorum resolution
|
|
|
|
# the admin key is not instantanely created so we have to wait a bit
|
2014-11-07 22:32:49 +08:00
|
|
|
|
|
|
|
- name: wait for client.admin key exists
|
|
|
|
wait_for: path=/etc/ceph/ceph.client.admin.keyring
|
2014-03-04 02:08:51 +08:00
|
|
|
|
2014-03-06 20:54:37 +08:00
|
|
|
- name: Create RGW keyring
|
|
|
|
command: ceph auth get-or-create client.radosgw.gateway osd 'allow rwx' mon 'allow rw' -o /etc/ceph/keyring.radosgw.gateway creates=/etc/ceph/keyring.radosgw.gateway
|
|
|
|
when: cephx and radosgw
|
|
|
|
changed_when: False
|
|
|
|
|
2014-03-04 02:08:51 +08:00
|
|
|
- name: Copy keys to the ansible server
|
2014-09-05 03:14:11 +08:00
|
|
|
fetch: >
|
2014-11-06 00:57:28 +08:00
|
|
|
src={{ item }}
|
|
|
|
dest=fetch/{{ fsid }}/{{ item }}
|
2014-09-05 03:14:11 +08:00
|
|
|
flat=yes
|
2014-04-30 16:02:07 +08:00
|
|
|
when: cephx
|
2014-03-04 02:08:51 +08:00
|
|
|
with_items:
|
|
|
|
- /etc/ceph/ceph.client.admin.keyring # just in case another application needs it
|
|
|
|
- /var/lib/ceph/bootstrap-osd/ceph.keyring # this handles the non-colocation case
|
|
|
|
- /var/lib/ceph/bootstrap-mds/ceph.keyring
|
2014-03-06 20:54:37 +08:00
|
|
|
- /etc/ceph/keyring.radosgw.gateway
|
2014-03-22 22:57:22 +08:00
|
|
|
|
|
|
|
- name: Drop in a motd script to report status when logging in
|
2014-09-05 03:14:11 +08:00
|
|
|
copy: >
|
2014-11-06 00:57:28 +08:00
|
|
|
src=precise/92-ceph
|
|
|
|
dest=/etc/update-motd.d/92-ceph
|
|
|
|
owner=root
|
|
|
|
group=root
|
2014-09-05 03:14:11 +08:00
|
|
|
mode=0755
|
2014-03-22 22:57:22 +08:00
|
|
|
when: ansible_distribution_release == 'precise'
|