mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 10:12:53 +01:00
SO Setup - Adding more debugging
This commit is contained in:
@@ -491,6 +491,7 @@ salt_master_directories() {
|
|||||||
|
|
||||||
# Copy over the salt code and templates
|
# Copy over the salt code and templates
|
||||||
cp -R pillar/* /opt/so/saltstack/pillar/
|
cp -R pillar/* /opt/so/saltstack/pillar/
|
||||||
|
mkdir -p /opt/so/saltstack/pillar/firewall
|
||||||
chmod +x /opt/so/saltstack/pillar/firewall/addfirewall.sh
|
chmod +x /opt/so/saltstack/pillar/firewall/addfirewall.sh
|
||||||
cp -R salt/* /opt/so/saltstack/salt/
|
cp -R salt/* /opt/so/saltstack/salt/
|
||||||
|
|
||||||
@@ -963,20 +964,27 @@ if (whiptail_you_sure); then
|
|||||||
add_socore_user_master
|
add_socore_user_master
|
||||||
|
|
||||||
# Install salt and dependencies
|
# Install salt and dependencies
|
||||||
saltify
|
echo " ** Installing Salt and Dependencies **"
|
||||||
|
saltify >/dev/null 2>&1
|
||||||
|
# Configure the Minion
|
||||||
|
echo " ** Configuring Minion **"
|
||||||
configure_minion master
|
configure_minion master
|
||||||
|
echo " ** Installing Salt Master **"
|
||||||
install_master
|
install_master
|
||||||
|
# Copy the data over
|
||||||
salt_master_directories
|
salt_master_directories
|
||||||
|
|
||||||
update_sudoers
|
update_sudoers
|
||||||
chown_salt_master
|
chown_salt_master
|
||||||
es_heapsize
|
es_heapsize
|
||||||
ls_heapsize
|
ls_heapsize
|
||||||
|
# Set the static values
|
||||||
master_static
|
master_static
|
||||||
echo "generating the master pillar"
|
echo "generating the master pillar"
|
||||||
master_pillar
|
master_pillar
|
||||||
set_initial_firewall_policy
|
set_initial_firewall_policy
|
||||||
# Do a checkin to push the key up
|
# Do a checkin to push the key up
|
||||||
salt_firstcheckin
|
salt_firstcheckin >/dev/null 2>&1
|
||||||
# Accept the Master Key
|
# Accept the Master Key
|
||||||
accept_salt_key_local
|
accept_salt_key_local
|
||||||
# Do the big checkin but first let them know it will take a bit.
|
# Do the big checkin but first let them know it will take a bit.
|
||||||
@@ -1037,7 +1045,7 @@ if (whiptail_you_sure); then
|
|||||||
saltify
|
saltify
|
||||||
configure_minion sensor
|
configure_minion sensor
|
||||||
copy_minion_pillar sensors
|
copy_minion_pillar sensors
|
||||||
salt_checkin
|
salt_firstcheckin
|
||||||
accept_salt_key_local
|
accept_salt_key_local
|
||||||
salt_checkin_message
|
salt_checkin_message
|
||||||
salt_checkin
|
salt_checkin
|
||||||
|
|||||||
Reference in New Issue
Block a user