mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-10 14:51:56 +02:00
- Create vars/postgres.map.jinja for postgres auth globals - Add POSTGRES_GLOBALS to all manager-type role vars (manager, eval, standalone, managersearch, import) - Add postgres module config to soc/defaults.yaml - Inject so_postgres credentials from auth pillar into soc/defaults.map.jinja (conditional on auth pillar existing)
20 lines
550 B
Django/Jinja
20 lines
550 B
Django/Jinja
{% from 'vars/elasticsearch.map.jinja' import ELASTICSEARCH_GLOBALS %}
|
|
{% from 'vars/logstash.map.jinja' import LOGSTASH_GLOBALS %}
|
|
{% from 'vars/postgres.map.jinja' import POSTGRES_GLOBALS %}
|
|
{% from 'vars/sensor.map.jinja' import SENSOR_GLOBALS %}
|
|
|
|
{% set ROLE_GLOBALS = {} %}
|
|
|
|
{% set STANDALONE_GLOBALS =
|
|
[
|
|
ELASTICSEARCH_GLOBALS,
|
|
LOGSTASH_GLOBALS,
|
|
POSTGRES_GLOBALS,
|
|
SENSOR_GLOBALS
|
|
]
|
|
%}
|
|
|
|
{% for sg in STANDALONE_GLOBALS %}
|
|
{% do salt['defaults.merge'](ROLE_GLOBALS, sg, merge_lists=False, in_place=True) %}
|
|
{% endfor %}
|