summaryrefslogtreecommitdiffstats
path: root/playbooks/byo/openshift-checks/adhoc.yml
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-08-28 13:13:05 -0400
committerGitHub <noreply@github.com>2017-08-28 13:13:05 -0400
commitca5ebcbb4ee01841ca415df3c5afc61c192e2df2 (patch)
tree70c6f0eb0825b79bb50be62683260fcf10b0c285 /playbooks/byo/openshift-checks/adhoc.yml
parent60b91e4ea7289e49dbd3b3a5539fb54de0e66c7e (diff)
parent51645eab599b0b23c582e22a9e84ce9423362ab1 (diff)
downloadopenshift-ca5ebcbb4ee01841ca415df3c5afc61c192e2df2.tar.gz
openshift-ca5ebcbb4ee01841ca415df3c5afc61c192e2df2.tar.bz2
openshift-ca5ebcbb4ee01841ca415df3c5afc61c192e2df2.tar.xz
openshift-ca5ebcbb4ee01841ca415df3c5afc61c192e2df2.zip
Merge pull request #4570 from rhcarvalho/adhoc-check-runner-misc
Add playbook to run adhoc health checks or list existing checks
Diffstat (limited to 'playbooks/byo/openshift-checks/adhoc.yml')
-rw-r--r--playbooks/byo/openshift-checks/adhoc.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/playbooks/byo/openshift-checks/adhoc.yml b/playbooks/byo/openshift-checks/adhoc.yml
new file mode 100644
index 000000000..226bed732
--- /dev/null
+++ b/playbooks/byo/openshift-checks/adhoc.yml
@@ -0,0 +1,27 @@
+---
+# NOTE: ideally this would be just part of a single play in
+# common/openshift-checks/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: ../openshift-cluster/initialize_groups.yml
+
+- include: ../../common/openshift-cluster/std_include.yml
+
+- include: ../../common/openshift-checks/adhoc.yml