ketzacoatl / compute-demo

HA compute / data processing cluster on AWS, built with Terraform, Packer, Nomad, Consul, and SaltStack.
3 stars 0 forks source link

auto-generate SSH config for bastion and pass-thru to leaders #2

Open ketzacoatl opened 6 years ago

ketzacoatl commented 6 years ago

Render a template like:

Host ${NAME}-${REGION}-bastion
        HostName        1.2.3.4
        ...
        IdentityFile    ~/.ssh/$NAME-key

Host ${NAME}-${REGION}-core-leader-01
        HostName        10.23.43.4
        User            ubuntu
        IdentityFile    ~/.ssh/$NAME-key
        ProxyCommand    ssh ${NAME}-${REGION}-bastion -W %h:%p