summaryrefslogtreecommitdiffstats
path: root/roles/openshift_metrics/tasks
diff options
context:
space:
mode:
authorJeff Cantrill <jcantril@redhat.com>2017-01-23 14:09:24 -0500
committerJeff Cantrill <jcantril@redhat.com>2017-01-23 14:09:24 -0500
commit92f1cf87eb20254d9da77306aa598506000b159b (patch)
tree15e2ee2c70da545a52a840ba2ac378ebc1c8da79 /roles/openshift_metrics/tasks
parentc24aec308f515dd7a1ae09d35cd95617530615b9 (diff)
downloadopenshift-92f1cf87eb20254d9da77306aa598506000b159b.tar.gz
openshift-92f1cf87eb20254d9da77306aa598506000b159b.tar.bz2
openshift-92f1cf87eb20254d9da77306aa598506000b159b.tar.xz
openshift-92f1cf87eb20254d9da77306aa598506000b159b.zip
fixes BZ-1414625. Check for httpd-tools and java before install
Diffstat (limited to 'roles/openshift_metrics/tasks')
-rw-r--r--roles/openshift_metrics/tasks/install_support.yaml18
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/openshift_metrics/tasks/install_support.yaml b/roles/openshift_metrics/tasks/install_support.yaml
index b0e4bec80..cc5acc6e5 100644
--- a/roles/openshift_metrics/tasks/install_support.yaml
+++ b/roles/openshift_metrics/tasks/install_support.yaml
@@ -1,4 +1,22 @@
---
+- name: Check control node to see if htpasswd is installed
+ local_action: command which htpasswd
+ register: htpasswd_check
+ failed_when: no
+ changed_when: no
+
+- fail: msg="'htpasswd' is unavailable. Please install httpd-tools on the control node"
+ when: htpasswd_check.rc == 1
+
+- name: Check control node to see if keytool is installed
+ local_action: command which htpasswd
+ register: keytool_check
+ failed_when: no
+ changed_when: no
+
+- fail: msg="'keytool' is unavailable. Please install java-1.8.0-openjdk-headless on the control node"
+ when: keytool_check.rc == 1
+
- include: generate_certificates.yaml
- include: generate_serviceaccounts.yaml
- include: generate_services.yaml