Files
ouranos/terraform/ssh_key_update.sh
Robert Helewka b4d60f2f38 docs: rewrite README with structured overview and quick start guide
Replaces the minimal project description with a comprehensive README
including a component overview table, quick start instructions, common
Ansible operations, and links to detailed documentation. Aligns with
Red Panda Approval™ standards.
2026-03-03 12:49:06 +00:00

9 lines
379 B
Bash
Executable File

#!/bin/bash
# Get host info from terraform output and add SSH keys for both IP and hostname.incus
terraform output -json uranian_hosts | jq -r 'to_entries[] | "\(.key) \(.value.ipv4)"' | while read hostname ip; do
# Add key for IP address
ssh-keyscan -H "$ip" >> ~/.ssh/known_hosts
# Add key for hostname.incus
ssh-keyscan -H "$hostname.incus" >> ~/.ssh/known_hosts
done