2015-01-21 01:43:47 +08:00
|
|
|
---
|
2020-09-23 23:47:20 +08:00
|
|
|
- name: create rgw keyrings
|
|
|
|
ceph_key:
|
2021-03-03 22:43:50 +08:00
|
|
|
name: "client.rgw.{{ ansible_facts['hostname'] }}.{{ item.instance_name }}"
|
2020-09-23 23:47:20 +08:00
|
|
|
cluster: "{{ cluster }}"
|
|
|
|
user: "client.bootstrap-rgw"
|
|
|
|
user_key: /var/lib/ceph/bootstrap-rgw/{{ cluster }}.keyring
|
2021-03-03 22:43:50 +08:00
|
|
|
dest: "/var/lib/ceph/radosgw/{{ cluster }}-rgw.{{ ansible_facts['hostname'] }}.{{ item.instance_name }}/keyring"
|
2020-09-23 23:47:20 +08:00
|
|
|
caps:
|
|
|
|
osd: 'allow rwx'
|
|
|
|
mon: 'allow rw'
|
|
|
|
import_key: False
|
2017-01-20 17:14:35 +08:00
|
|
|
owner: "ceph"
|
|
|
|
group: "ceph"
|
|
|
|
mode: "0600"
|
2021-08-09 20:57:33 +08:00
|
|
|
no_log: "{{ no_log_on_ceph_key_tasks }}"
|
2020-09-23 23:47:20 +08:00
|
|
|
environment:
|
|
|
|
CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment else None }}"
|
|
|
|
CEPH_CONTAINER_BINARY: "{{ container_binary }}"
|
2018-11-09 08:56:57 +08:00
|
|
|
with_items: "{{ rgw_instances }}"
|
2020-09-23 23:47:20 +08:00
|
|
|
when: cephx | bool
|