discover appliance model grain during setup

This commit is contained in:
Jason Ertel committed 2023-04-12 19:02:04 -04:00
1 parent 7838393b9f
commit dba7b84adb
2 files changed
+7 -4

No files matched your search

+5 -4
View File
@@ -770,11 +770,12 @@ check_requirements() {
}
check_sos_appliance() {
title "Is this is an SOS Appliance?"
if [ -f "/etc/SOSMODEL" ]; then
local MODEL=$(cat /etc/SOSMODEL)
info "Found SOS Model $MODEL"
echo "sosmodel: $MODEL" >> /etc/salt/grains
local MODEL=$(cat /etc/SOSMODEL)
info "Found SOS Model $MODEL"
echo "sosmodel: $MODEL" >> /etc/salt/grains
else
info "Not an appliance"
fi
}