diff options
author | Jeff Cantrill <jcantril@redhat.com> | 2017-08-23 14:53:41 -0400 |
---|---|---|
committer | Jeff Cantrill <jcantril@redhat.com> | 2017-08-23 14:53:41 -0400 |
commit | 2ad64aeaffa23854ecf96bd903f5a5a9f1284ee0 (patch) | |
tree | 03f790a6dcdc58ac821d812be6cb5a7d0d27b1b4 | |
parent | 1c104f28d44409fe7160a7467c65d1dfca837cc3 (diff) | |
download | openshift-2ad64aeaffa23854ecf96bd903f5a5a9f1284ee0.tar.gz openshift-2ad64aeaffa23854ecf96bd903f5a5a9f1284ee0.tar.bz2 openshift-2ad64aeaffa23854ecf96bd903f5a5a9f1284ee0.tar.xz openshift-2ad64aeaffa23854ecf96bd903f5a5a9f1284ee0.zip |
bug 1480878. Default pvc for logging
-rw-r--r-- | roles/openshift_logging_elasticsearch/tasks/main.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/openshift_logging_elasticsearch/tasks/main.yaml b/roles/openshift_logging_elasticsearch/tasks/main.yaml index 28c3ffd96..8380f8f1f 100644 --- a/roles/openshift_logging_elasticsearch/tasks/main.yaml +++ b/roles/openshift_logging_elasticsearch/tasks/main.yaml @@ -229,7 +229,7 @@ dest: "{{ tempdir }}/templates/logging-es-pvc.yml" vars: obj_name: "{{ openshift_logging_elasticsearch_pvc_name }}" - size: "{{ openshift_logging_elasticsearch_pvc_size }}" + size: "{{ (openshift_logging_elasticsearch_pvc_size | trim | length == 0) | ternary('10Gi', openshift_logging_elasticsearch_pvc_size) }}" access_modes: "{{ openshift_logging_elasticsearch_pvc_access_modes | list }}" pv_selector: "{{ openshift_logging_elasticsearch_pvc_pv_selector }}" storage_class_name: "{{ openshift_logging_elasticsearch_pvc_storage_class_name | default('', true) }}" @@ -243,7 +243,7 @@ dest: "{{ tempdir }}/templates/logging-es-pvc.yml" vars: obj_name: "{{ openshift_logging_elasticsearch_pvc_name }}" - size: "{{ openshift_logging_elasticsearch_pvc_size }}" + size: "{{ (openshift_logging_elasticsearch_pvc_size | trim | length == 0) | ternary('10Gi', openshift_logging_elasticsearch_pvc_size) }}" access_modes: "{{ openshift_logging_elasticsearch_pvc_access_modes | list }}" pv_selector: "{{ openshift_logging_elasticsearch_pvc_pv_selector }}" when: |