diff --git a/setup/so-functions b/setup/so-functions index 6a232df69..1df065e71 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -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 diff --git a/setup/so-setup b/setup/so-setup index 0da0b9f8d..68800c85b 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -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