commit | author | age | ||
ef0a96 | 1 | {% if cloud_provider == 'ec2' %} |
NS | 2 | Host ec2* *.internal |
3 | {% elif cloud_provider == 'osp' %} | |
4 | Host *.example.com | |
5 | {% endif %} | |
6b9f19 | 6 | User {{remote_user}} |
NS | 7 | {% if use_own_key|bool %} |
8 | IdentityFile ~/.ssh/{{env_authorized_key}}.pem | |
9 | {% else %} | |
10 | IdentityFile ~/.ssh/{{key_name}}.pem | |
11 | {% endif %} | |
12 | ForwardAgent yes | |
13 | StrictHostKeyChecking no | |
14 | ConnectTimeout 60 | |
15 | ConnectionAttempts 10 | |
ef0a96 | 16 | {% endif %} |