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