rolling_update: refact code

Refact rolling_update playbook.
Add ceph-client upgrade.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/1727/head
Guillaume Abrioux 2017-07-28 22:27:02 +02:00
parent f9eeedfbee
commit 206c7a16d0
1 changed files with 30 additions and 0 deletions

View File

@ -41,6 +41,7 @@
- "{{ mds_group_name|default('mdss') }}"
- "{{ rgw_group_name|default('rgws') }}"
- "{{ mgr_group_name|default('mgrs') }}"
- "{{ client_group_name|default('clients') }}"
become: True
tasks:
@ -91,6 +92,9 @@
- not containerized_deployment
roles:
- ceph-defaults
- { role: ceph.ceph-common, when: not containerized_deployment }
- { role: ceph.ceph-docker-common, when: containerized_deployment }
- ceph-mon
post_tasks:
@ -224,6 +228,9 @@
- not containerized_deployment
roles:
- ceph-defaults
- { role: ceph.ceph-common, when: not containerized_deployment }
- { role: ceph.ceph-docker-common, when: containerized_deployment }
- ceph-osd
post_tasks:
@ -341,6 +348,9 @@
- not containerized_deployment
roles:
- ceph-defaults
- { role: ceph.ceph-common, when: not containerized_deployment }
- { role: ceph.ceph-docker-common, when: containerized_deployment }
- ceph-mds
post_tasks:
@ -411,6 +421,9 @@
- not containerized_deployment
roles:
- ceph-defaults
- { role: ceph.ceph-common, when: not containerized_deployment }
- { role: ceph.ceph-docker-common, when: containerized_deployment }
- ceph-rgw
post_tasks:
@ -443,3 +456,20 @@
when:
- ansible_service_mgr == 'systemd'
- containerized_deployment
- name: upgrade ceph client node
vars:
upgrade_ceph_packages: True
hosts:
- "{{ client_group_name|default('clients') }}"
serial: 1
become: True
roles:
- ceph-defaults
- ceph.ceph-common
- ceph-client