From 206c7a16d0d5f2d894284c94cb6d54573acd0de8 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Fri, 28 Jul 2017 22:27:02 +0200 Subject: [PATCH] rolling_update: refact code Refact rolling_update playbook. Add ceph-client upgrade. Signed-off-by: Guillaume Abrioux --- infrastructure-playbooks/rolling_update.yml | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index 79a32317f..ddb5c37ce 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -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 -- 2.39.5