Add logstash_settings pillar

This commit is contained in:
Mike Reeves
2020-07-01 15:25:35 -04:00
parent 5580f05daf
commit ab42126d8e
5 changed files with 13 additions and 22 deletions

View File

@@ -1,14 +1,16 @@
{%- if grains.role == 'so-heavynode' %}
{%- set master = salt['pillar.get']('node:mainip', '') %}
{%- set MASTER = salt['pillar.get']('node:mainip', '') %}
{%- else %}
{%- set master = salt['pillar.get']('static:masterip', '') %}
{%- set MASTER = salt['pillar.get']('static:masterip', '') %}
{% endif -%}
{%- set THREADS = salt['pillar.get']('logstash_settings:ls_input_threads', '') %}
input {
redis {
host => '{{ master }}'
host => '{{ MASTER }}'
data_type => 'list'
key => 'logstash:unparsed'
type => 'redis-input'
# threads => 1
threads => {{ THREADS }}
}
}

View File

@@ -1,5 +1,5 @@
{% set MASTER = salt['pillar.get']('static:masterip', '') %}
{% set BATCH = salt['pillar.get']('logstash:batch_size', 125) %}
{% set BATCH = salt['pillar.get']('logstash_settings:ls_pipeline_batch_size', 125) %}
output {
redis {