mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-14 21:22:48 +01:00
Merge pull request #158 from m0duspwnens/master
changes for FireEye Helix integration
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Firewall Magic for the grid
|
||||
{%- if grains['role'] == 'so-master' or grains['role'] == 'so-eval' %}
|
||||
{%- if grains['role'] in ['so-eval','so-master','so-helix'] %}
|
||||
{%- set ip = salt['pillar.get']('static:masterip', '') %}
|
||||
{%- elif grains['role'] == 'so-node' %}
|
||||
{%- set ip = salt['pillar.get']('node:mainip', '') %}
|
||||
|
||||
@@ -236,6 +236,9 @@ configure_minion() {
|
||||
OLDPASS=$(cat /opt/so/saltstack/pillar/auth.sls | grep mysql | awk {'print $2'})
|
||||
echo "mysql.pass: '$OLDPASS'" >> /etc/salt/minion
|
||||
fi
|
||||
elif [ $TYPE == 'helix' ]; then
|
||||
echo "master: $HOSTNAME" > /etc/salt/minion
|
||||
echo "id: $MINION_ID" >> /etc/salt/minion
|
||||
else
|
||||
echo "master: $MSRV" > /etc/salt/minion
|
||||
echo "id: $MINION_ID" >> /etc/salt/minion
|
||||
@@ -255,7 +258,7 @@ copy_master_config() {
|
||||
if [ $INSTALLMETHOD == 'iso' ]; then
|
||||
cp /root/SecurityOnion/files/master /etc/salt/master
|
||||
else
|
||||
cp ../files/master /etc/salt/master
|
||||
cp $SCRIPTDIR/../files/master /etc/salt/master
|
||||
fi
|
||||
|
||||
# Restart the service so it picks up the changes -TODO Enable service on CentOS
|
||||
@@ -1065,8 +1068,8 @@ salt_master_directories() {
|
||||
cp /root/SecurityOnion/pillar/* /opt/so/saltstack/pillar/
|
||||
cp /root/SecurityOnion/salt/* /opt/so/saltstack/salt/
|
||||
else
|
||||
cp -R ../pillar/* /opt/so/saltstack/pillar/
|
||||
cp -R ../salt/* /opt/so/saltstack/salt/
|
||||
cp -R $SCRIPTDIR/../pillar/* /opt/so/saltstack/pillar/
|
||||
cp -R $SCRIPTDIR/../salt/* /opt/so/saltstack/salt/
|
||||
fi
|
||||
|
||||
chmod +x /opt/so/saltstack/pillar/firewall/addfirewall.sh
|
||||
|
||||
@@ -150,10 +150,12 @@ if (whiptail_you_sure) ; then
|
||||
esac
|
||||
|
||||
####################
|
||||
## Master ##
|
||||
## Helix ##
|
||||
####################
|
||||
if [ $INSTALLTYPE == 'HELIXSENSOR' ]; then
|
||||
MASTERUPDATES=OPEN
|
||||
filter_unused_nics
|
||||
whiptail_bond_nics
|
||||
whiptail_helix_apikey
|
||||
whiptail_homenet_master
|
||||
whiptail_rule_setup
|
||||
@@ -245,6 +247,9 @@ if (whiptail_you_sure) ; then
|
||||
|
||||
fi
|
||||
|
||||
####################
|
||||
## Master ##
|
||||
####################
|
||||
if [ $INSTALLTYPE == 'MASTERONLY' ]; then
|
||||
|
||||
# Would you like to do an advanced install?
|
||||
|
||||
Reference in New Issue
Block a user