summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging
diff options
context:
space:
mode:
authorewolinetz <ewolinet@redhat.com>2017-05-11 14:30:41 -0500
committerewolinetz <ewolinet@redhat.com>2017-05-22 10:42:54 -0500
commit27cd17a5b41c1cc93dbd84c12f571aa176f99ed2 (patch)
treebf7ff44defaa2cec2880cc93cacf778e4eaab879 /roles/openshift_logging
parentf204d6a0cb6f7e56e0ca9e62e9f329f815ebe816 (diff)
downloadopenshift-27cd17a5b41c1cc93dbd84c12f571aa176f99ed2.tar.gz
openshift-27cd17a5b41c1cc93dbd84c12f571aa176f99ed2.tar.bz2
openshift-27cd17a5b41c1cc93dbd84c12f571aa176f99ed2.tar.xz
openshift-27cd17a5b41c1cc93dbd84c12f571aa176f99ed2.zip
fixing available variables for 2.3.0
Diffstat (limited to 'roles/openshift_logging')
-rw-r--r--roles/openshift_logging/tasks/install_logging.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/openshift_logging/tasks/install_logging.yaml b/roles/openshift_logging/tasks/install_logging.yaml
index da00ba34d..536d1281d 100644
--- a/roles/openshift_logging/tasks/install_logging.yaml
+++ b/roles/openshift_logging/tasks/install_logging.yaml
@@ -52,6 +52,10 @@
- set_fact: es_indices={{ es_indices | default([]) + [item | int - 1] }}
with_sequence: count={{ openshift_logging_facts.elasticsearch.deploymentconfigs.keys() | count }}
+ when: openshift_logging_facts.elasticsearch.deploymentconfigs.keys() | count > 0
+
+- set_fact: es_indices=[]
+ when: openshift_logging_facts.elasticsearch.deploymentconfigs.keys() | count == 0
# TODO: add more vars
# We don't allow scaling down of ES nodes currently
@@ -94,6 +98,10 @@
with_sequence: count={{ openshift_logging_facts.elasticsearch_ops.deploymentconfigs.keys() | count }}
when:
- openshift_logging_use_ops | bool
+ - openshift_logging_facts.elasticsearch_ops.deploymentconfigs.keys() | count > 0
+
+- set_fact: es_ops_indices=[]
+ when: openshift_logging_facts.elasticsearch_ops.deploymentconfigs.keys() | count == 0
# TODO: add more vars
- include_role: