feat: add various infrastructure check and automation scripts

This commit is contained in:
2026-11-15 17:17:41 -05:00
parent 336b7759d0
commit b301aa3ece
232 changed files with 8274 additions and 298 deletions

View File

@@ -0,0 +1,21 @@
import paramiko
c = paramiko.SSHClient()
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
c.connect("140.44.4.71", username="snarf", password="Katzir476!", timeout=10)
def run(cmd):
full_cmd = f"echo Katzir476! | sudo -S sh -c '{cmd}'"
_, o, e = c.exec_command(full_cmd)
return o.read().decode().strip(), e.read().decode().strip()
print("Docker Volume Inspect:")
out, _ = run("docker volume inspect heimdall_heimdall_config")
print(out)
print("\nHeimdall service constraints:")
out, _ = run("docker service inspect heimdall_heimdall --format '{{json .Spec.TaskTemplate.Placement}}'")
print(out)
c.close()