summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging/tasks/install_elasticsearch.yaml
diff options
context:
space:
mode:
authorJeff Cantrill <jcantril@redhat.com>2017-03-02 15:58:18 -0500
committerJeff Cantrill <jcantril@redhat.com>2017-03-02 15:58:18 -0500
commitbd7f9386fa2cbe201509486b9ba9ac74b23e8f8a (patch)
treeeaa8d69790543409dbc8a9b2e86ba4ce7e76818f /roles/openshift_logging/tasks/install_elasticsearch.yaml
parent68aa6f269a6b0c4bf9af5f30d0dfb5ac6428b575 (diff)
downloadopenshift-bd7f9386fa2cbe201509486b9ba9ac74b23e8f8a.tar.gz
openshift-bd7f9386fa2cbe201509486b9ba9ac74b23e8f8a.tar.bz2
openshift-bd7f9386fa2cbe201509486b9ba9ac74b23e8f8a.tar.xz
openshift-bd7f9386fa2cbe201509486b9ba9ac74b23e8f8a.zip
bug 1420256. Initialize openshift_logging pvc_facts to empty
Diffstat (limited to 'roles/openshift_logging/tasks/install_elasticsearch.yaml')
-rw-r--r--roles/openshift_logging/tasks/install_elasticsearch.yaml19
1 files changed, 12 insertions, 7 deletions
diff --git a/roles/openshift_logging/tasks/install_elasticsearch.yaml b/roles/openshift_logging/tasks/install_elasticsearch.yaml
index 244949505..6b441c4aa 100644
--- a/roles/openshift_logging/tasks/install_elasticsearch.yaml
+++ b/roles/openshift_logging/tasks/install_elasticsearch.yaml
@@ -5,9 +5,13 @@
- name: Generate PersistentVolumeClaims
include: "{{ role_path}}/tasks/generate_pvcs.yaml"
vars:
- es_pvc_pool: []
+ es_pv_selector: "{{openshift_logging_es_pv_selector}}"
+ es_pvc_dynamic: "{{openshift_logging_es_pvc_dynamic | bool}}"
es_pvc_names: "{{openshift_logging_facts.elasticsearch.pvcs.keys()}}"
+ es_pvc_prefix: "{{openshift_logging_es_pvc_prefix}}"
+ es_pvc_size: "{{openshift_logging_es_pvc_size}}"
es_dc_names: "{{openshift_logging_facts.elasticsearch.deploymentconfigs.keys()}}"
+ es_cluster_size: "{{openshift_logging_es_cluster_size}}"
# we should initialize the es_dc_pool with the current keys
- name: Init pool of DeploymentConfig names for Elasticsearch
@@ -61,17 +65,18 @@
- "{{es_dcs | length - openshift_logging_es_ops_cluster_size|int | abs > 1}}"
check_mode: no
+- set_fact: es_pvc_pool={{[]}}
+
- name: Generate PersistentVolumeClaims for Ops
include: "{{ role_path}}/tasks/generate_pvcs.yaml"
vars:
- es_pvc_pool: []
es_pvc_names: "{{openshift_logging_facts.elasticsearch_ops.pvcs.keys()}}"
es_dc_names: "{{openshift_logging_facts.elasticsearch_ops.deploymentconfigs.keys()}}"
- openshift_logging_es_pvc_prefix: "{{openshift_logging_es_ops_pvc_prefix}}"
- openshift_logging_es_cluster_size: "{{openshift_logging_es_ops_cluster_size|int}}"
- openshift_logging_es_pvc_size: "{{openshift_logging_es_ops_pvc_size}}"
- openshift_logging_es_pvc_dynamic: "{{openshift_logging_es_ops_pvc_dynamic}}"
- openshift_logging_es_pv_selector: "{{openshift_logging_es_ops_pv_selector}}"
+ es_pvc_size: "{{openshift_logging_es_ops_pvc_size}}"
+ es_pvc_prefix: "{{openshift_logging_es_ops_pvc_prefix}}"
+ es_cluster_size: "{{openshift_logging_es_ops_cluster_size|int}}"
+ es_pvc_dynamic: "{{openshift_logging_es_ops_pvc_dynamic | bool}}"
+ es_pv_selector: "{{openshift_logging_es_ops_pv_selector}}"
when:
- openshift_logging_use_ops | bool
check_mode: no