mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
allow for pillar override of defaults
This commit is contained in:
@@ -28,3 +28,5 @@
|
||||
{% do ESCONFIG.elasticsearch.config.discovery.update({'seed_hosts': [grains.master]}) %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% set ESCONFIG = salt['pillar.get']('elasticsearch:config', default=ESCONFIG.elasticsearch.config, merge=True) %}
|
||||
|
||||
@@ -152,17 +152,9 @@ esyml:
|
||||
- user: 930
|
||||
- group: 939
|
||||
- defaults:
|
||||
ESCONFIG: {{ ESCONFIG.elasticsearch.config }}
|
||||
ESCONFIG: {{ ESCONFIG }}
|
||||
- template: jinja
|
||||
|
||||
|
||||
esyml_test:
|
||||
file.managed:
|
||||
- name: /tmp/elasticsearch.yml
|
||||
- user: 930
|
||||
- group: 939
|
||||
- contents: {{ ESCONFIG | yaml }}
|
||||
|
||||
#sync templates to /opt/so/conf/elasticsearch/templates
|
||||
{% for TEMPLATE in TEMPLATES %}
|
||||
es_template_{{TEMPLATE.split('.')[0] | replace("/","_") }}:
|
||||
|
||||
Reference in New Issue
Block a user