Setup - Add sensor pillar to Helix

This commit is contained in:
Mike Reeves
2019-12-13 10:06:49 -05:00
parent 4c89cb50bb
commit 30023ae725
3 changed files with 6 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ base:
'G@role:so-helix': 'G@role:so-helix':
- masters.{{ grains.id }} - masters.{{ grains.id }}
- sensors.{{ grains.id }}
- static - static
- firewall.* - firewall.*
- fireeye - fireeye

View File

@@ -1124,6 +1124,9 @@ sensor_pillar() {
SPIN=$(echo $SPIN | cut -d\" -f2) SPIN=$(echo $SPIN | cut -d\" -f2)
echo " - $SPIN" >> $SENSORPILLARPATH/$MINION_ID.sls echo " - $SPIN" >> $SENSORPILLARPATH/$MINION_ID.sls
done done
elif [ $INSTALLTYPE == 'HELIXSENSOR' ]; then
echo " bro_lbprocs: $LBPROCS" >> $SENSORPILLARPATH/$MINION_ID.sls
echo " suriprocs: $LBPROCS" >> $SENSORPILLARPATH/$MINION_ID.sls
else else
echo " bro_lbprocs: $BASICBRO" >> $SENSORPILLARPATH/$MINION_ID.sls echo " bro_lbprocs: $BASICBRO" >> $SENSORPILLARPATH/$MINION_ID.sls
echo " suriprocs: $BASICSURI" >> $SENSORPILLARPATH/$MINION_ID.sls echo " suriprocs: $BASICSURI" >> $SENSORPILLARPATH/$MINION_ID.sls

View File

@@ -151,6 +151,7 @@ if (whiptail_you_sure) ; then
whiptail_helix_apikey whiptail_helix_apikey
whiptail_homenet_master whiptail_homenet_master
RULESETUP=ETOPEN RULESETUP=ETOPEN
calculate_useable_cores
whiptail_make_changes whiptail_make_changes
set_hostname set_hostname
clear_master clear_master
@@ -193,6 +194,7 @@ if (whiptail_you_sure) ; then
patch_pillar >> $SETUPLOG 2>&1 patch_pillar >> $SETUPLOG 2>&1
echo "** Generating the FireEye pillar **" >> $SETUPLOG echo "** Generating the FireEye pillar **" >> $SETUPLOG
fireeye_pillar >> $SETUPLOG 2>&1 fireeye_pillar >> $SETUPLOG 2>&1
sensor_pillar >> $SETUPLOG 2>&1
echo -e "XXX\n24\nCopying Minion Pillars to Master... \nXXX" echo -e "XXX\n24\nCopying Minion Pillars to Master... \nXXX"
copy_minion_tmp_files >> $SETUPLOG 2>&1 copy_minion_tmp_files >> $SETUPLOG 2>&1
# Do a checkin to push the key up # Do a checkin to push the key up