mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-01-24 08:53:27 +01:00
move where in the process addtotab template and data directory are created - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/749
This commit is contained in:
@@ -56,6 +56,21 @@ add_master_hostfile() {
|
||||
whiptail_check_exitstatus $exitstatus
|
||||
}
|
||||
|
||||
addtotab_generate_templates() {
|
||||
|
||||
local addtotab_path=$local_salt_dir/pillar/data
|
||||
mkdir -p "$addtotab_path"
|
||||
|
||||
for i in evaltab mastersearchtab mastertab nodestab sensorstab
|
||||
do
|
||||
printf '%s\n'\
|
||||
"$i:"\
|
||||
"" > "$addtotab_path"/$i.sls
|
||||
echo "Added $i Template"
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
# $5 => (optional) password variable
|
||||
so_add_user() {
|
||||
local username=$1
|
||||
|
||||
@@ -405,6 +405,7 @@ fi
|
||||
salt_checkin >> $setup_log 2>&1
|
||||
|
||||
if [[ $is_master || $is_helix ]]; then
|
||||
addtotab_generate_templates >> $setup_log 2>&1
|
||||
set_progress_str 25 'Configuring firewall'
|
||||
set_initial_firewall_policy >> $setup_log 2>&1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user