|
@@ -69,15 +69,18 @@
|
|
|
vars:
|
|
|
generated_certs_dir: "{{openshift.common.config_base}}/logging"
|
|
|
openshift_logging_elasticsearch_namespace: "{{ openshift_logging_namespace }}"
|
|
|
- openshift_logging_elasticsearch_deployment_name: "{{ item.0 }}"
|
|
|
+ openshift_logging_elasticsearch_deployment_name: "{{ item.0.name }}"
|
|
|
openshift_logging_elasticsearch_pvc_name: "{{ openshift_logging_es_pvc_prefix ~ '-' ~ item.2 if item.1 is none else item.1 }}"
|
|
|
openshift_logging_elasticsearch_replica_count: "{{ openshift_logging_es_cluster_size | int }}"
|
|
|
|
|
|
openshift_logging_elasticsearch_storage_type: "{{ elasticsearch_storage_type }}"
|
|
|
openshift_logging_elasticsearch_pvc_pv_selector: "{{ openshift_logging_es_pv_selector }}"
|
|
|
+ openshift_logging_elasticsearch_nodeselector: "{{ openshift_logging_es_nodeselector if item.0.nodeSelector | default(None) is none else item.0.nodeSelector }}"
|
|
|
+ openshift_logging_elasticsearch_storage_group: "{{ [openshift_logging_es_storage_group] if item.0.storageGroups | default([]) | length == 0 else item.0.storageGroups }}"
|
|
|
+ _es_containers: "{{item.0.containers}}"
|
|
|
|
|
|
with_together:
|
|
|
- - "{{ openshift_logging_facts.elasticsearch.deploymentconfigs }}"
|
|
|
+ - "{{ openshift_logging_facts.elasticsearch.deploymentconfigs.values() }}"
|
|
|
- "{{ openshift_logging_facts.elasticsearch.pvcs }}"
|
|
|
- "{{ es_indices }}"
|
|
|
when:
|
|
@@ -119,7 +122,7 @@
|
|
|
vars:
|
|
|
generated_certs_dir: "{{openshift.common.config_base}}/logging"
|
|
|
openshift_logging_elasticsearch_namespace: "{{ openshift_logging_namespace }}"
|
|
|
- openshift_logging_elasticsearch_deployment_name: "{{ item.0 }}"
|
|
|
+ openshift_logging_elasticsearch_deployment_name: "{{ item.0.name }}"
|
|
|
openshift_logging_elasticsearch_pvc_name: "{{ openshift_logging_es_ops_pvc_prefix ~ '-' ~ item.2 if item.1 is none else item.1 }}"
|
|
|
openshift_logging_elasticsearch_ops_deployment: true
|
|
|
openshift_logging_elasticsearch_replica_count: "{{ openshift_logging_es_ops_cluster_size | int }}"
|
|
@@ -130,16 +133,18 @@
|
|
|
openshift_logging_elasticsearch_pvc_pv_selector: "{{ openshift_logging_es_ops_pv_selector }}"
|
|
|
openshift_logging_elasticsearch_memory_limit: "{{ openshift_logging_es_ops_memory_limit }}"
|
|
|
openshift_logging_elasticsearch_cpu_limit: "{{ openshift_logging_es_ops_cpu_limit }}"
|
|
|
- openshift_logging_elasticsearch_nodeselector: "{{ openshift_logging_es_ops_nodeselector }}"
|
|
|
+ openshift_logging_elasticsearch_nodeselector: "{{ openshift_logging_es_ops_nodeselector if item.0.nodeSelector | default(None) is none else item.0.nodeSelector }}"
|
|
|
+ openshift_logging_elasticsearch_storage_group: "{{ [openshift_logging_es_ops_storage_group] if item.0.storageGroups | default([]) | length == 0 else item.0.storageGroups }}"
|
|
|
openshift_logging_es_key: "{{ openshift_logging_es_ops_key }}"
|
|
|
openshift_logging_es_cert: "{{ openshift_logging_es_ops_cert }}"
|
|
|
openshift_logging_es_ca_ext: "{{ openshift_logging_es_ops_ca_ext }}"
|
|
|
openshift_logging_es_hostname: "{{ openshift_logging_es_ops_hostname }}"
|
|
|
openshift_logging_es_edge_term_policy: "{{ openshift_logging_es_ops_edge_term_policy | default('') }}"
|
|
|
openshift_logging_es_allow_external: "{{ openshift_logging_es_ops_allow_external }}"
|
|
|
+ _es_containers: "{{item.0.containers}}"
|
|
|
|
|
|
with_together:
|
|
|
- - "{{ openshift_logging_facts.elasticsearch_ops.deploymentconfigs }}"
|
|
|
+ - "{{ openshift_logging_facts.elasticsearch_ops.deploymentconfigs.values() }}"
|
|
|
- "{{ openshift_logging_facts.elasticsearch_ops.pvcs }}"
|
|
|
- "{{ es_ops_indices }}"
|
|
|
when:
|