2015-01-21 01:43:47 +08:00
|
|
|
---
|
2015-03-23 19:20:00 +08:00
|
|
|
- name: Create RGW directory
|
|
|
|
file: >
|
2015-04-14 21:46:49 +08:00
|
|
|
path=/var/lib/ceph/radosgw/ceph-radosgw.{{ ansible_hostname }}
|
2015-03-23 19:20:00 +08:00
|
|
|
state=directory
|
2015-01-21 01:43:47 +08:00
|
|
|
owner=root
|
|
|
|
group=root
|
2015-03-23 19:20:00 +08:00
|
|
|
mode=0644
|
2015-01-21 01:43:47 +08:00
|
|
|
|
2015-03-23 19:20:00 +08:00
|
|
|
- name: Copy RGW bootstrap key
|
|
|
|
copy: >
|
|
|
|
src=fetch/{{ fsid }}/etc/ceph/ceph.client.radosgw.{{ ansible_hostname }}.keyring
|
|
|
|
dest=/var/lib/ceph/radosgw/ceph-radosgw.{{ ansible_hostname }}/keyring
|
2015-01-21 01:43:47 +08:00
|
|
|
owner=root
|
|
|
|
group=root
|
2015-03-23 19:20:00 +08:00
|
|
|
mode=600
|
2015-01-21 01:43:47 +08:00
|
|
|
when: cephx
|
|
|
|
|
2015-03-23 19:20:00 +08:00
|
|
|
- name: Activate RGW with upstart
|
2015-01-21 01:43:47 +08:00
|
|
|
file: >
|
2015-04-14 21:46:49 +08:00
|
|
|
path=/var/lib/ceph/radosgw/ceph-radosgw.{{ ansible_hostname }}/{{ item }}
|
2015-03-23 19:20:00 +08:00
|
|
|
state=touch
|
2015-01-21 01:43:47 +08:00
|
|
|
owner=root
|
|
|
|
group=root
|
|
|
|
mode=0644
|
2015-03-30 16:59:08 +08:00
|
|
|
with_items:
|
|
|
|
- done
|
|
|
|
- upstart
|
|
|
|
when: ansible_distribution == "Ubuntu"
|