mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
add global vars for managersearch
This commit is contained in:
15
salt/vars/managersearch.map.jinja
Normal file
15
salt/vars/managersearch.map.jinja
Normal file
@@ -0,0 +1,15 @@
|
||||
{% from 'vars/elasticsearch.map.jinja' import ELASTICSEARCH_GLOBALS %}
|
||||
{% from 'vars/logstash.map.jinja' import LOGSTASH_GLOBALS %}
|
||||
|
||||
{% set ROLE_GLOBALS = {} %}
|
||||
|
||||
{% set MANAGERSEARCH_GLOBALS =
|
||||
[
|
||||
ELASTICSEARCH_GLOBALS,
|
||||
LOGSTASH_GLOBALS
|
||||
]
|
||||
%}
|
||||
|
||||
{% for sg in MANAGERSEARCH_GLOBALS %}
|
||||
{% do salt['defaults.merge'](ROLE_GLOBALS, sg, merge_lists=False, in_place=True) %}
|
||||
{% endfor %}
|
||||
@@ -3,13 +3,13 @@
|
||||
|
||||
{% set ROLE_GLOBALS = {} %}
|
||||
|
||||
{% set STANDALONE_GLOBALS =
|
||||
{% set SEARCHNODE_GLOBALS =
|
||||
[
|
||||
ELASTICSEARCH_GLOBALS,
|
||||
LOGSTASH_GLOBALS
|
||||
]
|
||||
%}
|
||||
|
||||
{% for sg in STANDALONE_GLOBALS %}
|
||||
{% for sg in SEARCHNODE_GLOBALS %}
|
||||
{% do salt['defaults.merge'](ROLE_GLOBALS, sg, merge_lists=False, in_place=True) %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user