瀏覽代碼

Adding defaults for es_indices

ewolinetz 8 年之前
父節點
當前提交
bf2f95376f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      roles/openshift_logging/tasks/install_elasticsearch.yaml

+ 2 - 2
roles/openshift_logging/tasks/install_elasticsearch.yaml

@@ -29,7 +29,7 @@
   with_together:
   with_together:
   - "{{ openshift_logging_facts.elasticsearch.deploymentconfigs.keys() }}"
   - "{{ openshift_logging_facts.elasticsearch.deploymentconfigs.keys() }}"
   - "{{ openshift_logging_facts.elasticsearch.deploymentconfigs.values() }}"
   - "{{ openshift_logging_facts.elasticsearch.deploymentconfigs.values() }}"
-  - "{{ es_indices }}"
+  - "{{ es_indices | default([]) }}"
   loop_control:
   loop_control:
     loop_var: deployment
     loop_var: deployment
 ## if it does not then we should create one that does and attach it
 ## if it does not then we should create one that does and attach it
@@ -97,7 +97,7 @@
   with_together:
   with_together:
   - "{{ openshift_logging_facts.elasticsearch_ops.deploymentconfigs.keys() }}"
   - "{{ openshift_logging_facts.elasticsearch_ops.deploymentconfigs.keys() }}"
   - "{{ openshift_logging_facts.elasticsearch_ops.deploymentconfigs.values() }}"
   - "{{ openshift_logging_facts.elasticsearch_ops.deploymentconfigs.values() }}"
-  - "{{ es_ops_indices }}"
+  - "{{ es_ops_indices | default([]) }}"
   loop_control:
   loop_control:
     loop_var: deployment
     loop_var: deployment
   when:
   when: