diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2017-11-17 15:38:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-17 15:38:34 -0800 |
commit | b4a294841e063784afe32c289bf3fd6410edc6d6 (patch) | |
tree | b0d6435b8846f95ce836d4fb78100ea509d60b21 /playbooks/openshift-checks/adhoc.yml | |
parent | 9e97038fe0dbd6aa842a260ccc10b35f7aefe787 (diff) | |
parent | 9f2de18076bbec19116351a7a3552d4fd2f6790a (diff) | |
download | openshift-b4a294841e063784afe32c289bf3fd6410edc6d6.tar.gz openshift-b4a294841e063784afe32c289bf3fd6410edc6d6.tar.bz2 openshift-b4a294841e063784afe32c289bf3fd6410edc6d6.tar.xz openshift-b4a294841e063784afe32c289bf3fd6410edc6d6.zip |
Merge pull request #6147 from mtnbikenc/consolidate-openshift-checks
Automatic merge from submit-queue.
Playbook Consolidation - openshift-checks
- Create playbooks/openshift-checks directory
- Move everything from playbooks/byo/openshift-checks to playbooks/openshift-checks
- Move everything from playbooks/common/openshift-checks to playbooks/openshift-checks/private
- Fix all include path references throughout playbooks/
Trello: https://trello.com/c/2Rx1uvjz/547-2-playbook-consolidation-openshift-checks
Diffstat (limited to 'playbooks/openshift-checks/adhoc.yml')
-rw-r--r-- | playbooks/openshift-checks/adhoc.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/playbooks/openshift-checks/adhoc.yml b/playbooks/openshift-checks/adhoc.yml new file mode 100644 index 000000000..036a63776 --- /dev/null +++ b/playbooks/openshift-checks/adhoc.yml @@ -0,0 +1,25 @@ +--- +# NOTE: ideally this would be just part of a single play in +# private/adhoc.yml that lists the existing checks when +# openshift_checks is not set or run the requested checks. However, to actually +# run the checks we need to have the included dependencies to run first and that +# takes time. To speed up listing checks, we use this separate play that runs +# before the include of dependencies to save time and improve the UX. +- name: OpenShift health checks + # NOTE: though the openshift_checks variable could be potentially defined on + # individual hosts while not defined for localhost, we do not support that + # usage. Running this play only in localhost speeds up execution. + hosts: localhost + connection: local + roles: + - openshift_health_checker + vars: + - r_openshift_health_checker_playbook_context: adhoc + pre_tasks: + - name: List known health checks + action: openshift_health_check + when: openshift_checks is undefined or not openshift_checks + +- include: ../init/main.yml + +- include: private/adhoc.yml |