Create mgr after starting monitors
This commit is contained in:
parent
9711a31580
commit
6031053716
|
@ -71,12 +71,6 @@
|
||||||
become_user: ceph
|
become_user: ceph
|
||||||
when: newhost is defined and newhost
|
when: newhost is defined and newhost
|
||||||
|
|
||||||
- name: create mgr auth keyring
|
|
||||||
command: ceph auth get-or-create mgr.{{ ansible_hostname }} mon 'allow profile mgr' osd 'allow *' mds 'allow *' --out-file /var/lib/ceph/mgr/ceph-{{ ansible_hostname }}/keyring
|
|
||||||
become_user: ceph
|
|
||||||
args:
|
|
||||||
creates: /var/lib/ceph/mgr/ceph-{{ ansible_hostname }}/keyring
|
|
||||||
|
|
||||||
- name: touch monitor and manager done files
|
- name: touch monitor and manager done files
|
||||||
file:
|
file:
|
||||||
dest: /var/lib/ceph/{{ item }}/ceph-{{ ansible_hostname }}/done
|
dest: /var/lib/ceph/{{ item }}/ceph-{{ ansible_hostname }}/done
|
||||||
|
@ -87,6 +81,20 @@
|
||||||
- mgr
|
- mgr
|
||||||
when: newhost is defined and newhost
|
when: newhost is defined and newhost
|
||||||
|
|
||||||
|
- name: start monitor daemon
|
||||||
|
service:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: started
|
||||||
|
with_items:
|
||||||
|
- ceph-mon@{{ ansible_hostname }}
|
||||||
|
when: newhost is defined and newhost
|
||||||
|
|
||||||
|
- name: create mgr auth keyring
|
||||||
|
command: ceph auth get-or-create mgr.{{ ansible_hostname }} mon 'allow profile mgr' osd 'allow *' mds 'allow *' --out-file /var/lib/ceph/mgr/ceph-{{ ansible_hostname }}/keyring
|
||||||
|
become_user: ceph
|
||||||
|
args:
|
||||||
|
creates: /var/lib/ceph/mgr/ceph-{{ ansible_hostname }}/keyring
|
||||||
|
|
||||||
- name: install OSD bootstrap keyring
|
- name: install OSD bootstrap keyring
|
||||||
file:
|
file:
|
||||||
dest: /var/lib/ceph/bootstrap-osd/ceph.keyring
|
dest: /var/lib/ceph/bootstrap-osd/ceph.keyring
|
||||||
|
|
Loading…
Reference in New Issue