diff options
author | Russell Teague <rteague@redhat.com> | 2017-11-16 13:20:39 -0500 |
---|---|---|
committer | Russell Teague <rteague@redhat.com> | 2017-11-16 14:26:37 -0500 |
commit | 9f2de18076bbec19116351a7a3552d4fd2f6790a (patch) | |
tree | 386f45f949c1cb73707b6a0f529d04f0f676565c /playbooks/openshift-checks/private/install.yml | |
parent | 7a18158c1df667d2bc45fae3ca62ed35400bedb8 (diff) | |
download | openshift-9f2de18076bbec19116351a7a3552d4fd2f6790a.tar.gz openshift-9f2de18076bbec19116351a7a3552d4fd2f6790a.tar.bz2 openshift-9f2de18076bbec19116351a7a3552d4fd2f6790a.tar.xz openshift-9f2de18076bbec19116351a7a3552d4fd2f6790a.zip |
Playbook Consolidation - openshift-checks
Diffstat (limited to 'playbooks/openshift-checks/private/install.yml')
-rw-r--r-- | playbooks/openshift-checks/private/install.yml | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/playbooks/openshift-checks/private/install.yml b/playbooks/openshift-checks/private/install.yml new file mode 100644 index 000000000..93cf6c359 --- /dev/null +++ b/playbooks/openshift-checks/private/install.yml @@ -0,0 +1,51 @@ +--- +- name: Health Check Checkpoint Start + hosts: all + gather_facts: false + tasks: + - name: Set Health Check 'In Progress' + run_once: true + set_stats: + data: + installer_phase_health: + status: "In Progress" + start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" + +- 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: all + gather_facts: false + tasks: + - name: Set Health Check 'Complete' + run_once: true + set_stats: + data: + installer_phase_health: + status: "Complete" + end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" |