mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Setup - Add sensor pillar to Helix
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user