Merge "Fix the ceph-mgr connect to cluster failed"

This commit is contained in:
Zuul 2018-05-02 16:43:42 +00:00 committed by Gerrit Code Review
commit a7a28f65b5
2 changed files with 17 additions and 0 deletions

View File

@ -36,6 +36,17 @@
- "{{ ceph_files['ceph.monmap'] }}"
when: inventory_hostname in groups['ceph-mon']
- name: Pushing Ceph keyrings for Mgrs
become: true
bslurp:
src: "{{ item.content }}"
dest: "{{ node_config_directory }}/ceph-mgr/{{ item.filename }}"
sha1: "{{ item.sha1 }}"
mode: 0600
with_items:
- "{{ ceph_files['ceph.client.admin.keyring'] }}"
when: inventory_hostname in groups['ceph-mgr']
- name: Pushing Ceph keyrings for RGWs
become: true
bslurp:

View File

@ -12,6 +12,12 @@
"dest": "/var/lib/ceph/mgr/ceph-{{ inventory_hostname }}/keyring",
"owner": "ceph",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/ceph.client.admin.keyring",
"dest": "/etc/ceph/ceph.client.admin.keyring",
"owner": "ceph",
"perm": "0600"
}
]
}