summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-checks
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2017-06-12 11:46:48 +0200
committerRodolfo Carvalho <rhcarvalho@gmail.com>2017-08-24 14:55:09 +0200
commitf98c978bd49f2473ce271d4fc69be7e4eea78125 (patch)
tree861ce43d69348244fef6201f099407fd2abc151f /playbooks/common/openshift-checks
parentebf6ed8d3d467a95fe62c22f131c82882a34c3ad (diff)
downloadopenshift-f98c978bd49f2473ce271d4fc69be7e4eea78125.tar.gz
openshift-f98c978bd49f2473ce271d4fc69be7e4eea78125.tar.bz2
openshift-f98c978bd49f2473ce271d4fc69be7e4eea78125.tar.xz
openshift-f98c978bd49f2473ce271d4fc69be7e4eea78125.zip
Add playbook for running arbitrary health checks
This is useful on its own, and also aids in developing/testing new checks that are not part of any playbook. Since the intent when running this playbook is to execute checks, opt for a less verbose explanation on the error summary.
Diffstat (limited to 'playbooks/common/openshift-checks')
-rw-r--r--playbooks/common/openshift-checks/adhoc.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/playbooks/common/openshift-checks/adhoc.yml b/playbooks/common/openshift-checks/adhoc.yml
new file mode 100644
index 000000000..dfcef8435
--- /dev/null
+++ b/playbooks/common/openshift-checks/adhoc.yml
@@ -0,0 +1,12 @@
+---
+- name: OpenShift health checks
+ hosts: oo_all_hosts
+ roles:
+ - openshift_health_checker
+ vars:
+ - r_openshift_health_checker_playbook_context: adhoc
+ post_tasks:
+ - name: Run health checks
+ action: openshift_health_check
+ args:
+ checks: '{{ openshift_checks | default([]) }}'