dont allow addtotab to run grafana and utility states if it is initial setup - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/749

This commit is contained in:
m0duspwnens
2020-05-27 15:07:49 -04:00
parent 12a6da928f
commit 16c6b2b202
2 changed files with 6 additions and 6 deletions
+5 -2
View File
@@ -12,6 +12,7 @@ MANINT=$6
ROOTFS=$7
NSM=$8
MONINT=$9
INITIALSETUP=$10
#NODETYPE=$10
#HOTNAME=$11
@@ -49,8 +50,10 @@ if [ $TYPE == 'sensorstab' ]; then
fi
if [ $TYPE == 'evaltab' ]; then
echo " monint: $MONINT" >> $local_salt_dir/pillar/data/$TYPE.sls
salt-call state.apply grafana queue=True
salt-call state.apply utility queue=True
if [ ! $10 ]; then
salt-call state.apply grafana queue=True
salt-call state.apply utility queue=True
fi
fi
#if [ $TYPE == 'nodestab' ]; then
# echo " nodetype: $NODETYPE" >> $local_salt_dir/pillar/data/$TYPE.sls