feat: add DNS setup blueprint and infrastructure automation scripts

This commit is contained in:
2026-11-08 09:28:06 -05:00
parent 17e60354a1
commit fc42bd6f94
11 changed files with 335 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import paramiko
c = paramiko.SSHClient()
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
c.connect('140.44.4.90', username='rancher', password='Katzir476!', timeout=10)
cmd = "echo Katzir476! | sudo -S sh -c 'export KUBECONFIG=/etc/rancher/rke2/rke2.yaml; /var/lib/rancher/rke2/bin/kubectl get vms -A; /var/lib/rancher/rke2/bin/kubectl get volumes.longhorn.io -n longhorn-system | head -n 10'"
stdin, stdout, stderr = c.exec_command(cmd)
print("STDOUT:\n" + stdout.read().decode())
print("STDERR:\n" + stderr.read().decode())
c.close()