Skip to content
Snippets Groups Projects
Commit 67900934 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Set fluentd output to elasticsearch to use elasticsearch_address"

parents 570fcdf5 7f3cab65
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
- name: "00-local" - name: "00-local"
enabled: true enabled: true
- name: "01-es" - name: "01-es"
enabled: "{{ enable_elasticsearch }}" enabled: "{{ enable_elasticsearch | bool or
( elasticsearch_address != kolla_internal_vip_address ) | bool }}"
- name: Copying over fluentd format config files - name: Copying over fluentd format config files
template: template:
......
...@@ -8,10 +8,11 @@ ...@@ -8,10 +8,11 @@
append true append true
compress gzip compress gzip
</store> </store>
{% if enable_elasticsearch | bool %} {% if enable_elasticsearch | bool or
elasticsearch_address != kolla_internal_vip_address %}
<store> <store>
type elasticsearch type elasticsearch
host {{ kolla_external_vip_address }} host {{ elasticsearch_address }}
port {{ elasticsearch_port }} port {{ elasticsearch_port }}
logstash_format true logstash_format true
logstash_prefix flog logstash_prefix flog
...@@ -32,10 +33,11 @@ ...@@ -32,10 +33,11 @@
append true append true
compress gzip compress gzip
</store> </store>
{% if enable_elasticsearch | bool %} {% if enable_elasticsearch | bool or
elasticsearch_address != kolla_internal_vip_address %}
<store> <store>
type elasticsearch type elasticsearch
host {{ kolla_external_vip_address }} host {{ elasticsearch_address }}
port {{ elasticsearch_port }} port {{ elasticsearch_port }}
logstash_format true logstash_format true
logstash_prefix flog logstash_prefix flog
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
type copy type copy
<store> <store>
type elasticsearch type elasticsearch
host {{ kolla_external_vip_address }} host {{ elasticsearch_address }}
port {{ elasticsearch_port }} port {{ elasticsearch_port }}
logstash_format true logstash_format true
logstash_prefix flog logstash_prefix flog
......
...@@ -60,7 +60,8 @@ ...@@ -60,7 +60,8 @@
"dest": "/etc/td-agent/format/wsgi_python.conf", "dest": "/etc/td-agent/format/wsgi_python.conf",
"owner": "td-agent", "owner": "td-agent",
"perm": "0600" "perm": "0600"
},{% if enable_elasticsearch | bool %} },{% if enable_elasticsearch | bool or
( elasticsearch_address != kolla_internal_vip_address ) | bool %}
{ {
"source": "{{ container_config_directory }}/output/01-es.conf", "source": "{{ container_config_directory }}/output/01-es.conf",
"dest": "/etc/td-agent/output/01-es.conf", "dest": "/etc/td-agent/output/01-es.conf",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment