need to update mine after salt-master starts

This commit is contained in:
m0duspwnens
2022-01-11 08:56:38 -05:00
parent 716c98ec61
commit 86c8fc6c1c

View File

@@ -665,10 +665,6 @@ up_to_2.3.90() {
up_to_2.3.100() {
echo "Updating to Security Onion to 2.3.100"
echo "Populating the mine with network.ip_addrs pillar.host.mainint for each host."
set +e
salt \* cmd.run cmd='MAININT=$(salt-call pillar.get host:mainint --out=newline_values_only) && salt-call mine.send name=network.ip_addrs interface="$MAININT"'
set -e
fix_wazuh
}
@@ -1060,6 +1056,11 @@ main() {
salt-call state.apply salt.python3-influxdb -l info queue=True
echo ""
echo "Populating the mine with network.ip_addrs pillar.host.mainint for each host."
set +e
salt \* cmd.run cmd='MAININT=$(salt-call pillar.get host:mainint --out=newline_values_only) && salt-call mine.send name=network.ip_addrs interface="$MAININT"'
set -e
# Only regenerate osquery packages if Fleet is enabled
FLEET_MANAGER=$(lookup_pillar fleet_manager)
FLEET_NODE=$(lookup_pillar fleet_node)