Detect if this is an SOS appliance

This commit is contained in:
Mike Reeves
2021-01-24 12:02:34 -05:00
parent 85e2a14f1e
commit b4c8b439a0
2 changed files with 10 additions and 0 deletions

View File

@@ -734,6 +734,15 @@ check_requirements() {
fi
}
check_sos_appliance() {
# Lets see if this is a SOS Appliance
if [ -f "/etc/SOSMODEL"]; then
local MODEL=$(cat /etc/SOSMODEL)
echo "Found SOS Model $MODEL"
echo "sosmodel: $MODEL" >> /etc/salt/grains
fi
}
compare_main_nic_ip() {
if [[ "$MAINIP" != "$MNIC_IP" ]]; then
read -r -d '' message <<- EOM

View File

@@ -604,6 +604,7 @@ set_redirect >> $setup_log 2>&1
set_progress_str 8 'Initializing Salt minion'
configure_minion "$minion_type" >> $setup_log 2>&1
check_sos_appliance >> $setup_log 2>&1
update_sudoers_for_testing >> $setup_log 2>&1