mirror of https://github.com/ceph/ceph-ansible.git
rolling_update: add role ceph-iscsi-gw
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1575829 Signed-off-by: Sébastien Han <seb@redhat.com>pull/2652/head
parent
2890b57cfc
commit
e91648a7af
|
@ -642,6 +642,49 @@
|
|||
- containerized_deployment
|
||||
|
||||
|
||||
- name: upgrade ceph iscsi gateway node
|
||||
|
||||
vars:
|
||||
upgrade_ceph_packages: True
|
||||
|
||||
hosts:
|
||||
- "{{ iscsi_gw_group_name|default('iscsi-gws') }}"
|
||||
|
||||
serial: 1
|
||||
become: True
|
||||
|
||||
pre_tasks:
|
||||
# failed_when: false is here so that if we upgrade
|
||||
# from a version of ceph that does not have iscsi gws
|
||||
# then this task will not fail
|
||||
- name: stop rbd-target-gw
|
||||
systemd:
|
||||
name: rbd-target-gw
|
||||
state: stopped
|
||||
enabled: yes
|
||||
failed_when: false
|
||||
when:
|
||||
- not containerized_deployment
|
||||
|
||||
roles:
|
||||
- ceph-defaults
|
||||
- { role: ceph-common, when: not containerized_deployment }
|
||||
- { role: ceph-docker-common, when: containerized_deployment }
|
||||
- ceph-config
|
||||
- { role: ceph-iscsi-gw,
|
||||
when: "(ceph_release_num[ceph_release] >= ceph_release_num.luminous) or
|
||||
(ceph_release_num[ceph_release] < ceph_release_num.luminous and rolling_update)" }
|
||||
|
||||
post_tasks:
|
||||
- name: start rbd-target-gw
|
||||
systemd:
|
||||
name: rbd-target-gw
|
||||
state: started
|
||||
enabled: yes
|
||||
when:
|
||||
- not containerized_deployment
|
||||
|
||||
|
||||
- name: upgrade ceph client node
|
||||
|
||||
vars:
|
||||
|
|
Loading…
Reference in New Issue