[fix] Correct wazuh + suricata pillar placement

This commit is contained in:
William Wernert
2020-05-14 11:50:16 -04:00
parent 937f488a8f
commit 2642968089

View File

@@ -823,11 +823,9 @@ master_pillar() {
" cur_close_days: $CURCLOSEDAYS"\ " cur_close_days: $CURCLOSEDAYS"\
" grafana: $GRAFANA"\ " grafana: $GRAFANA"\
" osquery: $OSQUERY"\ " osquery: $OSQUERY"\
" wazuh: $WAZUH"\
" thehive: $THEHIVE"\ " thehive: $THEHIVE"\
" playbook: $PLAYBOOK"\ " playbook: $PLAYBOOK"\
" navigator: $NAVIGATOR"\ " navigator: $NAVIGATOR"\
" strelka: $STRELKA"\
""\ ""\
"kratos:" >> "$pillar_file" "kratos:" >> "$pillar_file"
@@ -882,10 +880,10 @@ master_static() {
" fleet_ip: N/A"\ " fleet_ip: N/A"\
" sensoronikey: $SENSORONIKEY"\ " sensoronikey: $SENSORONIKEY"\
" strelka: $STRELKA"\ " strelka: $STRELKA"\
" wazuh: $WAZUH"\ " wazuh: $WAZUH"\
" masterupdate: $MASTERUPDATES" > "$static_pillar" " masterupdate: $MASTERUPDATES"\
echo "elastic:" >> /opt/so/saltstack/pillar/static.sls "elastic:"\
echo " features: False" >> /opt/so/saltstack/pillar/static.sls " features: False" > "$static_pillar"
printf '%s\n' '----' >> "$setup_log" 2>&1 printf '%s\n' '----' >> "$setup_log" 2>&1
cat "$static_pillar" >> "$setup_log" 2>&1 cat "$static_pillar" >> "$setup_log" 2>&1