mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 09:42:46 +01:00
Fix ES merge
This commit is contained in:
@@ -29,12 +29,13 @@
|
||||
{% do ESCONFIG.elasticsearch.config.xpack.ml.update({'enabled': true}) %}
|
||||
{% endif %}
|
||||
|
||||
{# merge with the elasticsearch pillar #}
|
||||
{% set ESCONFIG = salt['pillar.get']('elasticsearch:config', default=ESCONFIG.elasticsearch.config, merge=True) %}
|
||||
{% do ESCONFIG.elasticsearch.config.node.update({'name': grains.host}) %}
|
||||
{% do ESCONFIG.elasticsearch.config.cluster.update({'name': grains.host}) %}
|
||||
{% do ESCONFIG.elasticsearch.config.transport.update({'publish_host': grains.host}) %}
|
||||
|
||||
{# merge with the elasticsearch pillar #}
|
||||
{% set ESCONFIG = salt['pillar.get']('elasticsearch:config', default=ESCONFIG.elasticsearch.config, merge=True) %}
|
||||
|
||||
{% if salt['pillar.get']('elasticsearch:config:path:repo', False) %}
|
||||
{% for repo in pillar.elasticsearch.config.path.repo %}
|
||||
{# remove elasticsearch.config.path.repo value if the directory doesn't exist on the node #}
|
||||
|
||||
Reference in New Issue
Block a user