Merge "Stop all services before upgrading node's OS."

This commit is contained in:
Zuul 2019-05-29 12:18:22 +00:00 committed by Gerrit Code Review
commit f1ed1aae3c
2 changed files with 11 additions and 0 deletions

View File

@ -151,6 +151,9 @@ outputs:
async: 30
poll: 4
- name: Stop pacemaker cluster
tags:
- never
- system_upgrade_prepare
when: step|int == 2
pacemaker_cluster: state=offline
- name: Start pacemaker cluster

View File

@ -77,6 +77,14 @@ outputs:
when: container_registry_insecure_registries | length > 0
service_config_settings: {}
upgrade_tasks:
- block:
- name: Stop all services by stopping all Docker containers
when: step|int == 3
shell: docker ps -q | xargs --no-run-if-empty -n1 docker stop
tags:
- never
- system_upgrade_prepare
- name: Install podman packages on upgrade if missing
when: step|int == 3
package: name=podman state=latest