feat(fleet): adopt crostini as canonical node identifier for Chromebook; add provision-crostini alias
This commit is contained in:
@@ -18,7 +18,7 @@ if [ -z "$FLEET_NODE" ]; then
|
|||||||
t520*|workstation*) export FLEET_NODE="t520" ;;
|
t520*|workstation*) export FLEET_NODE="t520" ;;
|
||||||
bazina*) export FLEET_NODE="bazina" ;;
|
bazina*) export FLEET_NODE="bazina" ;;
|
||||||
boxC*|B) export FLEET_NODE="boxC" ;;
|
boxC*|B) export FLEET_NODE="boxC" ;;
|
||||||
penguin*|crostini*) export FLEET_NODE="penguin" ;;
|
penguin*|crostini*) export FLEET_NODE="crostini" ;;
|
||||||
localhost|android*) export FLEET_NODE="android" ;;
|
localhost|android*) export FLEET_NODE="android" ;;
|
||||||
*) export FLEET_NODE="$_HOST" ;;
|
*) export FLEET_NODE="$_HOST" ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
+2
-1
@@ -130,7 +130,8 @@ def main():
|
|||||||
alert = ""
|
alert = ""
|
||||||
if hostname == "boxC" and mount == "/mnt/kof17" and disk_free < 3.0:
|
if hostname == "boxC" and mount == "/mnt/kof17" and disk_free < 3.0:
|
||||||
alert = f"kof17 CRITICAL: {disk_free}G free"
|
alert = f"kof17 CRITICAL: {disk_free}G free"
|
||||||
elif hostname == "penguin" and disk_free < 1.0:
|
elif hostname in ("penguin", "crostini") and disk_free < 1.0:
|
||||||
|
alert = f"crostini LOW DISK: {disk_free}G free"
|
||||||
alert = f"penguin LOW DISK: {disk_free}G free"
|
alert = f"penguin LOW DISK: {disk_free}G free"
|
||||||
elif bat_pct >= 0 and bat_pct <= 15:
|
elif bat_pct >= 0 and bat_pct <= 15:
|
||||||
alert = f"{hostname} BATTERY CRITICAL: {bat_pct}%"
|
alert = f"{hostname} BATTERY CRITICAL: {bat_pct}%"
|
||||||
|
|||||||
Symlink
+1
@@ -0,0 +1 @@
|
|||||||
|
provision-penguin
|
||||||
+2
-2
@@ -15,9 +15,9 @@ ssh -o ConnectTimeout=5 "kof@$PENGUIN_IP" '
|
|||||||
git -C ~/bin pull origin main
|
git -C ~/bin pull origin main
|
||||||
sudo bash -c "cat << CONF > /etc/fleet_id
|
sudo bash -c "cat << CONF > /etc/fleet_id
|
||||||
# Fleet Node Identification
|
# Fleet Node Identification
|
||||||
FLEET_NODE=\"penguin\"
|
FLEET_NODE=\"crostini\"
|
||||||
FLEET_ARCH=\"x86_64\"
|
FLEET_ARCH=\"x86_64\"
|
||||||
FLEET_SIGN=\"[penguin:x86_64]\"
|
FLEET_SIGN=\"[crostini:x86_64]\"
|
||||||
CONF
|
CONF
|
||||||
chmod 644 /etc/fleet_id"
|
chmod 644 /etc/fleet_id"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user