2015-01-21 01:43:47 +08:00
|
|
|
---
|
2018-11-09 08:56:57 +08:00
|
|
|
- name: create rados gateway instance keyring
|
|
|
|
command: ceph --cluster {{ cluster }} --name client.bootstrap-rgw --keyring /var/lib/ceph/bootstrap-rgw/{{ cluster }}.keyring auth get-or-create client.rgw.{{ ansible_hostname }}.{{ item.instance_name }} osd 'allow rwx' mon 'allow rw' -o /var/lib/ceph/radosgw/{{ cluster }}-rgw.{{ ansible_hostname }}.{{ item.instance_name }}/keyring
|
2015-10-19 11:19:31 +08:00
|
|
|
args:
|
2018-11-09 08:56:57 +08:00
|
|
|
creates: /var/lib/ceph/radosgw/{{ cluster }}-rgw.{{ ansible_hostname }}.{{ item.instance_name }}/keyring
|
2015-06-26 06:26:03 +08:00
|
|
|
changed_when: false
|
2018-11-09 08:56:57 +08:00
|
|
|
with_items: "{{ rgw_instances }}"
|
|
|
|
when:
|
|
|
|
- cephx
|
2015-06-12 17:47:08 +08:00
|
|
|
|
2018-11-09 08:56:57 +08:00
|
|
|
- name: set rados gateway instance key permissions
|
2015-11-17 23:10:02 +08:00
|
|
|
file:
|
2018-11-09 08:56:57 +08:00
|
|
|
path: /var/lib/ceph/radosgw/{{ cluster }}-rgw.{{ ansible_hostname }}.{{ item.instance_name }}/keyring
|
2017-01-20 17:14:35 +08:00
|
|
|
owner: "ceph"
|
|
|
|
group: "ceph"
|
|
|
|
mode: "0600"
|
2018-11-09 08:56:57 +08:00
|
|
|
with_items: "{{ rgw_instances }}"
|
|
|
|
when:
|
|
|
|
- cephx
|