place searchnode role with node where referenced

This commit is contained in:
m0duspwnens
2020-06-15 16:58:30 -04:00
parent 578e2b5d1d
commit 91a50c0915
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -623,7 +623,7 @@
# # you can add username and password to your url to use basic authentication:
# # servers = ["http://user:pass@localhost:9200"]
servers = ["http://{{ MASTER }}:9200"]
{% elif grains['role'] in ['so-searchnode', 'so-hotnode', 'so-warmnode', 'so-heavynode'] %}
{% elif grains['role'] in ['so-node', 'so-hotnode', 'so-warmnode', 'so-heavynode'] %}
[[inputs.elasticsearch]]
servers = ["http://{{ NODEIP }}:9200"]
{% endif %}