fix spacing on es input

This commit is contained in:
m0duspwnens
2021-11-02 13:43:59 -04:00
parent 2232759fa4
commit 54b034b537

View File

@@ -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 %}
#