summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging/vars
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-02-10 10:20:26 -0500
committerGitHub <noreply@github.com>2017-02-10 10:20:26 -0500
commit094fd21ceab111900c518dfad874b434c81e62ee (patch)
treec85fc777a8bb9266683a0940f2a5a6ba98ecde35 /roles/openshift_logging/vars
parente1e69ad8346a6938e1d58a852dbf2f8ad28eff6f (diff)
parent5243b91ee3eef10cb4fa7f21d4de09c48641a0b0 (diff)
downloadopenshift-094fd21ceab111900c518dfad874b434c81e62ee.tar.gz
openshift-094fd21ceab111900c518dfad874b434c81e62ee.tar.bz2
openshift-094fd21ceab111900c518dfad874b434c81e62ee.tar.xz
openshift-094fd21ceab111900c518dfad874b434c81e62ee.zip
Merge pull request #3319 from richm/logging-cluster-size-int
make sure cluster_size is an int for arith. ops
Diffstat (limited to 'roles/openshift_logging/vars')
-rw-r--r--roles/openshift_logging/vars/main.yaml12
1 files changed, 6 insertions, 6 deletions
diff --git a/roles/openshift_logging/vars/main.yaml b/roles/openshift_logging/vars/main.yaml
index 11662c446..07cc05683 100644
--- a/roles/openshift_logging/vars/main.yaml
+++ b/roles/openshift_logging/vars/main.yaml
@@ -1,8 +1,8 @@
---
openshift_master_config_dir: "{{ openshift.common.config_base }}/master"
-es_node_quorum: "{{openshift_logging_es_cluster_size/2 + 1}}"
-es_recover_after_nodes: "{{openshift_logging_es_cluster_size - 1}}"
-es_recover_expected_nodes: "{{openshift_logging_es_cluster_size}}"
-es_ops_node_quorum: "{{openshift_logging_es_ops_cluster_size/2 + 1}}"
-es_ops_recover_after_nodes: "{{openshift_logging_es_ops_cluster_size - 1}}"
-es_ops_recover_expected_nodes: "{{openshift_logging_es_ops_cluster_size}}"
+es_node_quorum: "{{openshift_logging_es_cluster_size|int/2 + 1}}"
+es_recover_after_nodes: "{{openshift_logging_es_cluster_size|int - 1}}"
+es_recover_expected_nodes: "{{openshift_logging_es_cluster_size|int}}"
+es_ops_node_quorum: "{{openshift_logging_es_ops_cluster_size|int/2 + 1}}"
+es_ops_recover_after_nodes: "{{openshift_logging_es_ops_cluster_size|int - 1}}"
+es_ops_recover_expected_nodes: "{{openshift_logging_es_ops_cluster_size|int}}"