mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +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]}) %}
|
{% do ESCONFIG.elasticsearch.config.discovery.update({'seed_hosts': [grains.master]}) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% set ESCONFIG = salt['pillar.get']('elasticsearch:config', default=ESCONFIG.elasticsearch.config, merge=True) %}
|
||||||
|
|||||||
@@ -152,17 +152,9 @@ esyml:
|
|||||||
- user: 930
|
- user: 930
|
||||||
- group: 939
|
- group: 939
|
||||||
- defaults:
|
- defaults:
|
||||||
ESCONFIG: {{ ESCONFIG.elasticsearch.config }}
|
ESCONFIG: {{ ESCONFIG }}
|
||||||
- template: jinja
|
- 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
|
#sync templates to /opt/so/conf/elasticsearch/templates
|
||||||
{% for TEMPLATE in TEMPLATES %}
|
{% for TEMPLATE in TEMPLATES %}
|
||||||
es_template_{{TEMPLATE.split('.')[0] | replace("/","_") }}:
|
es_template_{{TEMPLATE.split('.')[0] | replace("/","_") }}:
|
||||||
|
|||||||
Reference in New Issue
Block a user