mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-15 21:52:47 +01:00
23 lines
666 B
Django/Jinja
23 lines
666 B
Django/Jinja
{%- if grains['role'] == 'so-eval' -%}
|
|
{%- set ES = salt['pillar.get']('manager:mainip', '') -%}
|
|
{%- else %}
|
|
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
|
{%- endif %}
|
|
{% set FEATURES = salt['pillar.get']('elastic:features', False) %}
|
|
output {
|
|
if [module] =~ "ossec" {
|
|
elasticsearch {
|
|
pipeline => "%{module}"
|
|
hosts => "{{ ES }}"
|
|
index => "so-ossec"
|
|
template_name => "so-ossec"
|
|
template => "/templates/so-ossec-template.json"
|
|
template_overwrite => true
|
|
{%- if grains['role'] in ['so-node','so-heavynode'] %}
|
|
ssl => true
|
|
ssl_certificate_verification => false
|
|
{%- endif %}
|
|
}
|
|
}
|
|
}
|