mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +01:00
Merge branch 'master' of https://github.com/TOoSmOotH/securityonion-saltstack
This commit is contained in:
@@ -27,3 +27,7 @@ base:
|
|||||||
- nodes.{{ grains.id }}
|
- nodes.{{ grains.id }}
|
||||||
- static
|
- static
|
||||||
- firewall.*
|
- firewall.*
|
||||||
|
|
||||||
|
'G@role:so-helix':
|
||||||
|
- fireeye
|
||||||
|
- static
|
||||||
|
|||||||
@@ -476,6 +476,17 @@ filter_unused_nics() {
|
|||||||
FNICS=$(ip link | grep -vwe $grep_string | awk -F: '$0 !~ "lo|vir|veth|br|docker|wl|^[^0-9]"{print $2}')
|
FNICS=$(ip link | grep -vwe $grep_string | awk -F: '$0 !~ "lo|vir|veth|br|docker|wl|^[^0-9]"{print $2}')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fireeye_pillar() {
|
||||||
|
|
||||||
|
FIREEYEPILLARPATH=$TMP/pillar/fireeye
|
||||||
|
|
||||||
|
echo "" >> $FIREEYEPILLARPATH/init.sls
|
||||||
|
echo "fireeye:" >> $FIREEYEPILLARPATH/init.sls
|
||||||
|
echo " helix:" >> $FIREEYEPILLARPATH/init.sls
|
||||||
|
echo " api_key: $HELIXAPIKEY" >> $FIREEYEPILLARPATH/init.sls
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
generate_passwords(){
|
generate_passwords(){
|
||||||
# Generate Random Passwords for Things
|
# Generate Random Passwords for Things
|
||||||
MYSQLPASS=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 20 | head -n 1)
|
MYSQLPASS=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 20 | head -n 1)
|
||||||
|
|||||||
@@ -193,6 +193,8 @@ if (whiptail_you_sure) ; then
|
|||||||
master_pillar >> $SETUPLOG 2>&1
|
master_pillar >> $SETUPLOG 2>&1
|
||||||
echo "** Generating the patch pillar **" >> $SETUPLOG
|
echo "** Generating the patch pillar **" >> $SETUPLOG
|
||||||
patch_pillar >> $SETUPLOG 2>&1
|
patch_pillar >> $SETUPLOG 2>&1
|
||||||
|
echo "** Generating the FireEye pillar **" >> $SETUPLOG
|
||||||
|
fireeye_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