feat: add boot staging configuration and automation utility scripts

This commit is contained in:
2026-11-02 14:09:13 -05:00
parent 08d085b95f
commit 90977592ab
26 changed files with 773 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import sys, paramiko
sys.stdout.reconfigure(encoding='utf-8')
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect('140.44.4.21', username='root', key_filename=r'C:\Users\Snarf\.ssh\id_ed25519_snarfnet', timeout=10)
cmds = [
"hostname",
"df -h /",
"tune2fs -l /dev/mmcblk0p2 | grep -i 'error.*behavior'",
"systemctl is-active systemd-timesyncd",
"systemctl is-active zabbix-agent2",
"systemctl is-active k3s-agent",
"grep -q 'snarfnet-automation-master' ~/.ssh/authorized_keys && echo 'SSH Key Enrolled: YES'"
]
for cmd in cmds:
stdin, stdout, stderr = ssh.exec_command(cmd)
res = stdout.read().decode('utf-8', errors='replace').strip()
print(f"{cmd} => {res}")
ssh.close()