2014-03-04 02:08:51 +08:00
|
|
|
---
|
|
|
|
# This playbook does a rolling update for all the Ceph services
|
|
|
|
# Change the value of serial: to adjust the number of server to be updated.
|
|
|
|
#
|
2014-07-08 21:39:42 +08:00
|
|
|
# The four roles that apply to the ceph hosts will be applied: ceph-common,
|
|
|
|
# ceph-mon, ceph-osd and ceph-mds. So any changes to configuration, package updates, etc,
|
2014-03-04 02:08:51 +08:00
|
|
|
# will be applied as part of the rolling update process.
|
|
|
|
#
|
|
|
|
|
|
|
|
# /!\ DO NOT FORGET TO CHANGE THE RELEASE VERSION FIRST! /!\
|
|
|
|
|
2014-06-26 15:52:06 +08:00
|
|
|
- hosts:
|
|
|
|
- mons
|
|
|
|
- osds
|
|
|
|
- mdss
|
|
|
|
- rgws
|
2014-03-04 02:08:51 +08:00
|
|
|
sudo: True
|
|
|
|
roles:
|
2014-07-08 21:39:42 +08:00
|
|
|
- ceph-common
|
2014-03-04 02:08:51 +08:00
|
|
|
|
|
|
|
- hosts: mons
|
|
|
|
serial: 1
|
|
|
|
sudo: True
|
|
|
|
roles:
|
2014-07-08 21:39:42 +08:00
|
|
|
- ceph-mon
|
2014-03-04 02:08:51 +08:00
|
|
|
post_tasks:
|
|
|
|
- name: restart monitor(s)
|
2014-09-05 03:14:11 +08:00
|
|
|
service: >
|
|
|
|
name=ceph
|
|
|
|
state=restarted
|
|
|
|
args=mon
|
2014-03-04 02:08:51 +08:00
|
|
|
|
|
|
|
- hosts: osds
|
|
|
|
serial: 1
|
|
|
|
sudo: True
|
|
|
|
roles:
|
2014-07-08 21:39:42 +08:00
|
|
|
- ceph-osd
|
2014-03-04 02:08:51 +08:00
|
|
|
post_tasks:
|
|
|
|
- name: restart object storage daemon(s)
|
|
|
|
command: service ceph-osd-all restart
|
|
|
|
when: ansible_distribution == "Ubuntu"
|
|
|
|
- name: restart object storage daemon(s)
|
|
|
|
service: name=ceph state=restarted args=osd
|
|
|
|
when: ansible_distribution == "Debian"
|
|
|
|
|
|
|
|
- hosts: mdss
|
|
|
|
serial: 1
|
|
|
|
sudo: True
|
|
|
|
roles:
|
2014-07-08 21:39:42 +08:00
|
|
|
- ceph-mds
|
2014-03-04 02:08:51 +08:00
|
|
|
post_tasks:
|
|
|
|
- name: restart metadata server(s)
|
2014-09-05 03:14:11 +08:00
|
|
|
service: >
|
2014-11-06 00:57:28 +08:00
|
|
|
name=ceph
|
|
|
|
state=restarted
|
2014-09-05 03:14:11 +08:00
|
|
|
args=mds
|