Setup Script - Added whiptail for homenet

This commit is contained in:
Mike Reeves
2018-04-12 13:36:25 -04:00
parent 91c6dba77b
commit 0b1ca6a7b4

View File

@@ -307,12 +307,12 @@ master_pillar() {
master_static() { master_static() {
# Create a static file for global values # Create a static file for global values
touch /opt/so/saltstack/pillar/static/static.sls touch /opt/so/saltstack/pillar/static/init.sls
echo "static:" > /opt/so/saltstack/pillar/static.sls echo "static:" > /opt/so/saltstack/pillar/static.sls
echo " hnmaster: $HNMASTER" >> /opt/so/saltstack/pillar/static.sls echo " hnmaster: $HNMASTER" >> /opt/so/saltstack/pillar/static/init.sls
echo " ntpserver: $NTPSERVER" echo " ntpserver: $NTPSERVER" >> /opt/so/saltstack/pillar/static/init.sls
echo " proxy: $PROXY" echo " proxy: $PROXY" >> /opt/so/saltstack/pillar/static/init.sls
} }
@@ -751,6 +751,8 @@ if (whiptail_you_sure) then
whiptail_management_nic whiptail_management_nic
# Select Snort or Suricata # Select Snort or Suricata
whiptail_nids whiptail_nids
# Snag the HOME_NET
whiptail_homenet_master
# Pick your Ruleset # Pick your Ruleset
whiptail_rule_setup whiptail_rule_setup
@@ -776,6 +778,7 @@ if (whiptail_you_sure) then
chown_salt_master chown_salt_master
es_heapsize es_heapsize
ls_heapsize ls_heapsize
master_static
echo "generating the master pillar" echo "generating the master pillar"
master_pillar master_pillar
# Do a checkin to push the key up # Do a checkin to push the key up