mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
13 lines
498 B
Plaintext
13 lines
498 B
Plaintext
elastic_auth_pillar:
|
|
file.managed:
|
|
- name: /opt/so/saltstack/local/pillar/elasticsearch/auth.sls
|
|
- contents: |
|
|
elasticsearch:
|
|
auth:
|
|
enabled: False
|
|
user: so_elastic
|
|
pass: {{ salt['random.get_str'](20) }}
|
|
# since we are generating a random password, and we don't want that to happen everytime
|
|
# a highstate runs, we only manage the file if it doesn't exist
|
|
- unless: ls /opt/so/saltstack/local/pillar/elasticsearch/auth.sls
|