only have addtotab.sh run grafana or utility state if masterfw.sls exists

This commit is contained in:
m0duspwnens
2020-05-26 17:12:47 -04:00
parent 1eb6142f11
commit 2467f5636b

View File

@@ -57,9 +57,11 @@ if [ $TYPE == 'sensorstab' ]; then
fi
if [ $TYPE == 'evaltab' ]; then
echo " monint: $MONINT" >> $local_salt_dir/pillar/data/$TYPE.sls
if [ -f $local_salt_dir/pillar/firewall/masterfw.sls ] ; 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
# echo " hotname: $HOTNAME" >> $local_salt_dir/pillar/data/$TYPE.sls