diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-10-27 10:30:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-27 10:30:20 -0400 |
commit | 9fc3615db36806272973cbc480bfcce7b93709f9 (patch) | |
tree | 7f86b5a803645b3d331032b5dfcae198467bb93a /playbooks/common/openshift-checks/install.yml | |
parent | d645b81d0a60a682b0c488d0f9a08383542d659e (diff) | |
parent | c66536bc27db98232ba1e231cfdee48a72936d5b (diff) | |
download | openshift-9fc3615db36806272973cbc480bfcce7b93709f9.tar.gz openshift-9fc3615db36806272973cbc480bfcce7b93709f9.tar.bz2 openshift-9fc3615db36806272973cbc480bfcce7b93709f9.tar.xz openshift-9fc3615db36806272973cbc480bfcce7b93709f9.zip |
Merge pull request #5742 from mtnbikenc/refactor-checks
1504593 Refactor health check playbooks
Diffstat (limited to 'playbooks/common/openshift-checks/install.yml')
-rw-r--r-- | playbooks/common/openshift-checks/install.yml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/playbooks/common/openshift-checks/install.yml b/playbooks/common/openshift-checks/install.yml new file mode 100644 index 000000000..6701a2e15 --- /dev/null +++ b/playbooks/common/openshift-checks/install.yml @@ -0,0 +1,47 @@ +--- +- name: Health Check Checkpoint Start + hosts: oo_all_hosts + gather_facts: false + tasks: + - name: Set Health Check 'In Progress' + set_stats: + data: + installer_phase_health: "In Progress" + aggregate: false + +- name: OpenShift Health Checks + hosts: oo_all_hosts + any_errors_fatal: true + roles: + - openshift_health_checker + vars: + - r_openshift_health_checker_playbook_context: install + post_tasks: + - name: Run health checks (install) - EL + when: ansible_distribution != "Fedora" + action: openshift_health_check + args: + checks: + - disk_availability + - memory_availability + - package_availability + - package_version + - docker_image_availability + - docker_storage + + - name: Run health checks (install) - Fedora + when: ansible_distribution == "Fedora" + action: openshift_health_check + args: + checks: + - docker_image_availability + +- name: Health Check Checkpoint End + hosts: oo_all_hosts + gather_facts: false + tasks: + - name: Set Health Check 'Complete' + set_stats: + data: + installer_phase_health: "Complete" + aggregate: false |