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.
9 lines
379 B
Bash
Executable File
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
|