mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #697 from fultonj/rolling_update_sysvinit
sysvinit changes to rolling update playbookpull/698/head
commit
aad93b4ba5
|
@ -30,7 +30,8 @@
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- name: Check if sysvinit
|
- name: Check if sysvinit
|
||||||
stat: >
|
stat: >
|
||||||
path=/var/lib/ceph/mon/ceph-{{ ansible_hostname }}/sysvinit
|
path=/etc/rc?.d/S??ceph
|
||||||
|
follow=yes
|
||||||
register: monsysvinit
|
register: monsysvinit
|
||||||
|
|
||||||
- name: Check if upstart
|
- name: Check if upstart
|
||||||
|
@ -49,7 +50,6 @@
|
||||||
service: >
|
service: >
|
||||||
name=ceph
|
name=ceph
|
||||||
state=restarted
|
state=restarted
|
||||||
args=mon
|
|
||||||
when: monsysvinit.stat.exists == True
|
when: monsysvinit.stat.exists == True
|
||||||
|
|
||||||
- name: restart monitor(s)
|
- name: restart monitor(s)
|
||||||
|
@ -57,6 +57,13 @@
|
||||||
name=ceph
|
name=ceph
|
||||||
state=restarted
|
state=restarted
|
||||||
args=mon
|
args=mon
|
||||||
|
when: not ansible_os_family == "RedHat"
|
||||||
|
|
||||||
|
- name: restart monitor(s)
|
||||||
|
service: >
|
||||||
|
name=ceph
|
||||||
|
state=restarted
|
||||||
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
- name: select a running monitor
|
- name: select a running monitor
|
||||||
set_fact: mon_host={{ item }}
|
set_fact: mon_host={{ item }}
|
||||||
|
@ -113,7 +120,6 @@
|
||||||
service: >
|
service: >
|
||||||
name=ceph
|
name=ceph
|
||||||
state=restarted
|
state=restarted
|
||||||
args=osd
|
|
||||||
when: osdsysvinit.rc == 0
|
when: osdsysvinit.rc == 0
|
||||||
|
|
||||||
- name: Waiting for clean PGs...
|
- name: Waiting for clean PGs...
|
||||||
|
|
Loading…
Reference in New Issue