|
@@ -105,20 +105,22 @@
|
|
|
- set_fact: es_ops_indices=[]
|
|
|
when: openshift_logging_facts.elasticsearch_ops.deploymentconfigs.keys() | count == 0
|
|
|
|
|
|
+- set_fact: openshift_logging_es_ops_pvc_prefix="logging-es-ops"
|
|
|
+ when: openshift_logging_es_ops_pvc_prefix == ""
|
|
|
|
|
|
- include_role:
|
|
|
name: openshift_logging_elasticsearch
|
|
|
vars:
|
|
|
generated_certs_dir: "{{openshift.common.config_base}}/logging"
|
|
|
openshift_logging_elasticsearch_deployment_name: "{{ item.0 }}"
|
|
|
- openshift_logging_elasticsearch_pvc_name: "{{ openshift_logging_es_pvc_prefix ~ '-' ~ item.2 if item.1 is none else item.1 }}"
|
|
|
+ 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 }}"
|
|
|
|
|
|
- openshift_logging_elasticsearch_storage_type: "{{ 'pvc' if ( openshift_logging_es_pvc_dynamic | bool or openshift_hosted_logging_storage_kind | default('') == 'nfs') else 'emptydir' }}"
|
|
|
- openshift_logging_elasticsearch_pvc_size: "{{ openshift_logging_es_pvc_size }}"
|
|
|
- openshift_logging_elasticsearch_pvc_dynamic: "{{ openshift_logging_es_pvc_dynamic }}"
|
|
|
- openshift_logging_elasticsearch_pvc_pv_selector: "{{ openshift_logging_es_pv_selector }}"
|
|
|
+ openshift_logging_elasticsearch_storage_type: "{{ 'pvc' if ( openshift_logging_es_ops_pvc_dynamic | bool or openshift_hosted_logging_storage_kind | default('') == 'nfs') else 'emptydir' }}"
|
|
|
+ openshift_logging_elasticsearch_pvc_size: "{{ openshift_logging_es_ops_pvc_size }}"
|
|
|
+ openshift_logging_elasticsearch_pvc_dynamic: "{{ openshift_logging_es_ops_pvc_dynamic }}"
|
|
|
+ openshift_logging_elasticsearch_pvc_pv_selector: "{{ openshift_logging_es_ops_pv_selector }}"
|
|
|
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 }}"
|
|
@@ -139,14 +141,14 @@
|
|
|
name: openshift_logging_elasticsearch
|
|
|
vars:
|
|
|
generated_certs_dir: "{{openshift.common.config_base}}/logging"
|
|
|
- openshift_logging_elasticsearch_pvc_name: "{{ openshift_logging_es_pvc_prefix }}-{{ item | int + openshift_logging_facts.elasticsearch_ops.deploymentconfigs | count - 1 }}"
|
|
|
+ openshift_logging_elasticsearch_pvc_name: "{{ openshift_logging_es_ops_pvc_prefix }}-{{ item | int + openshift_logging_facts.elasticsearch_ops.deploymentconfigs | count - 1 }}"
|
|
|
openshift_logging_elasticsearch_ops_deployment: true
|
|
|
openshift_logging_elasticsearch_replica_count: "{{ openshift_logging_es_ops_cluster_size | int }}"
|
|
|
|
|
|
- openshift_logging_elasticsearch_storage_type: "{{ 'pvc' if ( openshift_logging_es_pvc_dynamic | bool or openshift_hosted_logging_storage_kind | default('') == 'nfs') else 'emptydir' }}"
|
|
|
- openshift_logging_elasticsearch_pvc_size: "{{ openshift_logging_es_pvc_size }}"
|
|
|
- openshift_logging_elasticsearch_pvc_dynamic: "{{ openshift_logging_es_pvc_dynamic }}"
|
|
|
- openshift_logging_elasticsearch_pvc_pv_selector: "{{ openshift_logging_es_pv_selector }}"
|
|
|
+ openshift_logging_elasticsearch_storage_type: "{{ 'pvc' if ( openshift_logging_es_ops_pvc_dynamic | bool or openshift_hosted_logging_storage_kind | default('') == 'nfs') else 'emptydir' }}"
|
|
|
+ openshift_logging_elasticsearch_pvc_size: "{{ openshift_logging_es_ops_pvc_size }}"
|
|
|
+ openshift_logging_elasticsearch_pvc_dynamic: "{{ openshift_logging_es_ops_pvc_dynamic }}"
|
|
|
+ openshift_logging_elasticsearch_pvc_pv_selector: "{{ openshift_logging_es_ops_pv_selector }}"
|
|
|
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 }}"
|