diff options
author | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-07-28 13:40:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-28 13:40:54 +0200 |
commit | d0761aee7107dffa4803f39b2aaecb660d767752 (patch) | |
tree | 22246d0a0c335b48c65207b6ad5a064b3eee7b77 /playbooks | |
parent | 4a442d87006bdd535eb5035d122a6b5226555da2 (diff) | |
parent | 8af18393771ed5679932b05e34fc1d941f7dd51e (diff) | |
download | openshift-d0761aee7107dffa4803f39b2aaecb660d767752.tar.gz openshift-d0761aee7107dffa4803f39b2aaecb660d767752.tar.bz2 openshift-d0761aee7107dffa4803f39b2aaecb660d767752.tar.xz openshift-d0761aee7107dffa4803f39b2aaecb660d767752.zip |
Merge pull request #4372 from juanvallejo/jvallejo/verify-disk-memory-before-upgrade
Add health checks to upgrade playbook
Diffstat (limited to 'playbooks')
-rw-r--r-- | playbooks/common/openshift-cluster/upgrades/init.yml | 2 | ||||
-rw-r--r-- | playbooks/common/openshift-cluster/upgrades/pre/verify_health_checks.yml | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/init.yml b/playbooks/common/openshift-cluster/upgrades/init.yml index 0f421928b..5fc290526 100644 --- a/playbooks/common/openshift-cluster/upgrades/init.yml +++ b/playbooks/common/openshift-cluster/upgrades/init.yml @@ -23,3 +23,5 @@ set_fact: os_firewall_use_firewalld: false when: "'Active: active' in service_iptables_status.stdout" + +- include: ./pre/verify_health_checks.yml diff --git a/playbooks/common/openshift-cluster/upgrades/pre/verify_health_checks.yml b/playbooks/common/openshift-cluster/upgrades/pre/verify_health_checks.yml new file mode 100644 index 000000000..497709d25 --- /dev/null +++ b/playbooks/common/openshift-cluster/upgrades/pre/verify_health_checks.yml @@ -0,0 +1,13 @@ +--- +- name: Verify Host Requirements + hosts: oo_all_hosts + roles: + - openshift_health_checker + vars: + - r_openshift_health_checker_playbook_context: upgrade + post_tasks: + - action: openshift_health_check + args: + checks: + - disk_availability + - memory_availability |