mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
[fix] Run salt command to check in to master before accepting salt key
This commit is contained in:
@@ -654,7 +654,6 @@ docker_seed_registry() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fireeye_pillar() {
|
fireeye_pillar() {
|
||||||
|
|
||||||
local fireeye_pillar_path=/opt/so/saltstack/pillar/fireeye
|
local fireeye_pillar_path=/opt/so/saltstack/pillar/fireeye
|
||||||
@@ -668,6 +667,10 @@ fireeye_pillar() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
salt_firstcheckin() {
|
||||||
|
salt-call state.show_top >> "$setup_log" 2>&1
|
||||||
|
}
|
||||||
|
|
||||||
fleet_pillar() {
|
fleet_pillar() {
|
||||||
|
|
||||||
local pillar_file="$temp_install_dir"/pillar/minions/"$MINION_ID".sls
|
local pillar_file="$temp_install_dir"/pillar/minions/"$MINION_ID".sls
|
||||||
|
|||||||
@@ -299,6 +299,9 @@ export percentage=0
|
|||||||
master_pillar 2>> "$setup_log"
|
master_pillar 2>> "$setup_log"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set_progress_str 14 'Running first Salt checkin'
|
||||||
|
salt_firstcheckin 2>> "$setup_log"
|
||||||
|
|
||||||
if [[ $is_helix ]]; then
|
if [[ $is_helix ]]; then
|
||||||
set_progress_str 15 'Generating the FireEye pillar'
|
set_progress_str 15 'Generating the FireEye pillar'
|
||||||
fireeye_pillar 2>> "$setup_log"
|
fireeye_pillar 2>> "$setup_log"
|
||||||
@@ -315,19 +318,19 @@ export percentage=0
|
|||||||
node_pillar 2>> "$setup_log"
|
node_pillar 2>> "$setup_log"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set_progress_str 19 'Generating CA and checking in'
|
|
||||||
salt_checkin 2>> "$setup_log"
|
|
||||||
|
|
||||||
if [[ $is_minion ]]; then
|
if [[ $is_minion ]]; then
|
||||||
set_progress_str 20 'Accepting Salt key on master'
|
set_progress_str 19 'Accepting Salt key on master'
|
||||||
accept_salt_key_remote 2>> "$setup_log"
|
accept_salt_key_remote 2>> "$setup_log"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $is_master ]]; then
|
if [[ $is_master ]]; then
|
||||||
set_progress_str 20 'Accepting Salt key'
|
set_progress_str 19 'Accepting Salt key'
|
||||||
salt-key -ya "$MINION_ID" >> "$setup_log" 2>&1
|
salt-key -ya "$MINION_ID" >> "$setup_log" 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set_progress_str 20 'Generating CA and checking in'
|
||||||
|
salt_checkin 2>> "$setup_log"
|
||||||
|
|
||||||
if [[ $is_master || $is_helix ]]; then
|
if [[ $is_master || $is_helix ]]; then
|
||||||
set_progress_str 25 'Downloading containers from the internet'
|
set_progress_str 25 'Downloading containers from the internet'
|
||||||
salt-call state.apply -l info registry >> "$setup_log" 2>&1
|
salt-call state.apply -l info registry >> "$setup_log" 2>&1
|
||||||
|
|||||||
Reference in New Issue
Block a user