fix import

This commit is contained in:
doug
2022-12-19 16:55:16 -05:00
parent 7168c4f91a
commit 9d8951ceb8
3 changed files with 35 additions and 14 deletions

View File

@@ -146,9 +146,12 @@ base:
{% if salt['file.file_exists']('/opt/so/saltstack/local/pillar/kibana/secrets.sls') %} {% if salt['file.file_exists']('/opt/so/saltstack/local/pillar/kibana/secrets.sls') %}
- kibana.secrets - kibana.secrets
{% endif %} {% endif %}
- kratos.soc_kratos
- elasticsearch.soc_elasticsearch
- manager.soc_manager
- soc.soc_soc
- soc_global - soc_global
- adv_global - adv_global
- manager.soc_manager
- backup.soc_backup - backup.soc_backup
- backup.adv_backup - backup.adv_backup
- minions.{{ grains.id }} - minions.{{ grains.id }}

View File

@@ -165,7 +165,21 @@ function add_sensor_to_minion() {
echo " enabled: True" >> $PILLARFILE echo " enabled: True" >> $PILLARFILE
} }
function createSTANDALONE() { function createEVAL() {
add_elastic_to_minion
add_sensor_to_minion
}
function createIDHNODE() {
echo "Nothing custom needed for IDH nodes"
}
function createIMPORT() {
add_elastic_to_minion
add_sensor_to_minion
}
function createHEAVYNODE() {
add_elastic_to_minion add_elastic_to_minion
add_sensor_to_minion add_sensor_to_minion
} }
@@ -178,16 +192,6 @@ function createMASTERSEARCH() {
add_elastic_to_minion add_elastic_to_minion
} }
function createHEAVYNODE() {
add_elastic_to_minion
add_sensor_to_minion
}
function createEVAL() {
add_elastic_to_minion
add_sensor_to_minion
}
function createSENSOR() { function createSENSOR() {
add_sensor_to_minion add_sensor_to_minion
} }
@@ -196,8 +200,9 @@ function createSEARCHNODE() {
add_elastic_to_minion add_elastic_to_minion
} }
function createIDHNODE() { function createSTANDALONE() {
echo "Nothing custom needed for IDH nodes" add_elastic_to_minion
add_sensor_to_minion
} }
function testConnection() { function testConnection() {

View File

@@ -0,0 +1,13 @@
{% from 'vars/elasticsearch.map.jinja' import ELASTICSEARCH_GLOBALS %}
{% set ROLE_GLOBALS = {} %}
{% set IMPORT_GLOBALS =
[
ELASTICSEARCH_GLOBALS
]
%}
{% for sg in IMPORT_GLOBALS %}
{% do salt['defaults.merge'](ROLE_GLOBALS, sg, merge_lists=False, in_place=True) %}
{% endfor %}