mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
fix logic
This commit is contained in:
@@ -33,7 +33,7 @@ elastic_auth_pillar:
|
|||||||
# be within the file either, so it should then be created
|
# be within the file either, so it should then be created
|
||||||
{% if salt['pillar.get']('elasticsearch:auth', False) %}
|
{% if salt['pillar.get']('elasticsearch:auth', False) %}
|
||||||
- unless:
|
- unless:
|
||||||
{% for so_app_user in salt['pillar.get']('elasticsearch:auth:users') %}
|
{% for so_app_user, values in salt['pillar.get']('elasticsearch:auth:users', {'so_noapp_user': {'user': 'r@NDumu53Rd0NtDOoP'}}).items() %}
|
||||||
- grep {{ so_app_user.user }} /opt/so/saltstack/local/pillar/elasticsearch/auth.sls
|
- grep {{ values.user }} /opt/so/saltstack/local/pillar/elasticsearch/auth.sls
|
||||||
{% endfor%}
|
{% endfor%}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user