mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-25 22:17:49 +02:00
set elasticsearch:auth to persist through user pw change
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
{% set so_logstash_user_pass = salt['pillar.get']('elasticsearch:auth:users:so_logstash_user:pass', salt['random.get_str'](72)) %}
|
{% set so_logstash_user_pass = salt['pillar.get']('elasticsearch:auth:users:so_logstash_user:pass', salt['random.get_str'](72)) %}
|
||||||
{% set so_beats_user_pass = salt['pillar.get']('elasticsearch:auth:users:so_beats_user:pass', salt['random.get_str'](72)) %}
|
{% set so_beats_user_pass = salt['pillar.get']('elasticsearch:auth:users:so_beats_user:pass', salt['random.get_str'](72)) %}
|
||||||
{% set so_monitor_user_pass = salt['pillar.get']('elasticsearch:auth:users:so_monitor_user:pass', salt['random.get_str'](72)) %}
|
{% set so_monitor_user_pass = salt['pillar.get']('elasticsearch:auth:users:so_monitor_user:pass', salt['random.get_str'](72)) %}
|
||||||
|
{% set auth_enabled = salt['pillar.get']('elasticsearch:auth:enabled', False) %}
|
||||||
|
|
||||||
elastic_auth_pillar:
|
elastic_auth_pillar:
|
||||||
file.managed:
|
file.managed:
|
||||||
@@ -15,7 +16,7 @@ elastic_auth_pillar:
|
|||||||
- contents: |
|
- contents: |
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
auth:
|
auth:
|
||||||
enabled: True
|
enabled: {{ auth_enabled }}
|
||||||
users:
|
users:
|
||||||
so_elastic_user:
|
so_elastic_user:
|
||||||
user: so_elastic
|
user: so_elastic
|
||||||
|
|||||||
Reference in New Issue
Block a user