add elasticsearch.auth state to statnalone node

This commit is contained in:
m0duspwnens committed 2021-05-25 13:46:18 -04:00
1 parent 747dc77c92
commit e261c197f3
3 files changed
+4 -3

No files matched your search

+3
View File
@@ -7,3 +7,6 @@ elastic_auth_pillar:
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
-3
View File
@@ -260,9 +260,6 @@ elastic_curl_config:
file.managed:
- name: /opt/so/conf/elasticsearch/curl.config
- mode: 600
# 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/conf/elasticsearch/curl.config
{% endif %} {# if grains['role'] != 'so-helix' #}
+1
View File
@@ -238,6 +238,7 @@ base:
{%- endif %}
{%- if ELASTICSEARCH %}
- elasticsearch
- elasticsearch.auth
{%- endif %}
{%- if LOGSTASH %}
- logstash