From 54b034b53778289b311b74d247dfbafb746fcd3a Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Tue, 2 Nov 2021 13:43:59 -0400 Subject: [PATCH] fix spacing on es input --- salt/telegraf/etc/telegraf.conf | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/salt/telegraf/etc/telegraf.conf b/salt/telegraf/etc/telegraf.conf index fa7dabe09..318be2e0e 100644 --- a/salt/telegraf/etc/telegraf.conf +++ b/salt/telegraf/etc/telegraf.conf @@ -625,23 +625,23 @@ # # Read stats from one or more Elasticsearch servers or clusters {%- if grains['role'] in ['so-manager', 'so-eval', 'so-managersearch', 'so-standalone'] %} - [[inputs.elasticsearch]] - servers = ["https://{{ MANAGER }}:9200"] - cluster_stats = true +[[inputs.elasticsearch]] + servers = ["https://{{ MANAGER }}:9200"] + cluster_stats = true {%- if salt['pillar.get']('elasticsearch:auth:enabled') is sameas true %} - username = "{{ ES_USER }}" - password = "{{ ES_PASS }}" + username = "{{ ES_USER }}" + password = "{{ ES_PASS }}" {%- endif %} - insecure_skip_verify = true + insecure_skip_verify = true {%- elif grains['role'] in ['so-node', 'so-hotnode', 'so-warmnode', 'so-heavynode'] %} - [[inputs.elasticsearch]] - servers = ["https://{{ NODEIP }}:9200"] - cluster_stats = true +[[inputs.elasticsearch]] + servers = ["https://{{ NODEIP }}:9200"] + cluster_stats = true {%- if salt['pillar.get']('elasticsearch:auth:enabled') is sameas true %} - username = "{{ ES_USER }}" - password = "{{ ES_PASS }}" + username = "{{ ES_USER }}" + password = "{{ ES_PASS }}" {%- endif %} - insecure_skip_verify = true + insecure_skip_verify = true {%- endif %} #