]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rolling_update: refact code
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 28 Jul 2017 20:27:02 +0000 (22:27 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 2 Aug 2017 09:10:51 +0000 (11:10 +0200)
Refact rolling_update playbook.
Add ceph-client upgrade.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
infrastructure-playbooks/rolling_update.yml

index 79a32317fa0ae67785fea42ee853589376fa2244..ddb5c37cebbfe9d7724d4ab2ea628c6444cb64ab 100644 (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:
         - 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:
         - 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:
         - 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:
       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