more changes

This commit is contained in:
m0duspwnens
2021-06-01 10:53:58 -04:00
parent f87dce8ec1
commit d25a439bd4
6 changed files with 34 additions and 39 deletions

View File

@@ -3,12 +3,6 @@
{% set role = grains.id.split('_') | last %}
{% from 'elasticsearch/auth.map.jinja' import ELASTICAUTH with context %}
{% set ES_INCLUDED_NODES = ['so-standalone'] %}
{% if grains.role in ES_INCLUDED_NODES %}
include:
- elasticsearch.auth
{% %}
# Remove variables.txt from /tmp - This is temp
rmvariablesfile:
@@ -174,6 +168,13 @@ alwaysupdated:
Etc/UTC:
timezone.system
elastic_curl_config:
file.managed:
- name: /opt/so/conf/elasticsearch/curl.config
- source: salt://elasticsearch/curl.config
- mode: 600
- show_changes: False
# Sync some Utilities
utilsyncscripts:
file.recurse:
@@ -185,10 +186,6 @@ utilsyncscripts:
- source: salt://common/tools/sbin
- defaults:
ELASTICCURL: {{ ELASTICAUTH.elasticcurl }}
{% if grains.role in ES_INCLUDED_NODES %}
- require:
- file: elastic_auth_pillar
{% endif %}
{% if role in ['eval', 'standalone', 'sensor', 'heavynode'] %}
# Add sensor cleanup