Logstash Module- Fix Redis output logic

This commit is contained in:
Mike Reeves
2018-05-22 15:33:26 -04:00
parent eff81445ea
commit b032fcfcb6

View File

@@ -1,3 +1,6 @@
{%- if salt['grains.get']('role') == 'so-master' %}
{%- set nodetype = 'master' %}
{%- else %}
{%- set nodetype = salt['pillar_get']('node:node_type', 'storage') %}
output {
redis {
@@ -13,3 +16,4 @@ output {
# batch_events => 500
}
}
{%- endif %}