We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f328c5 commit 8686850Copy full SHA for 8686850
environments/.stackhpc/inventory/group_vars/all/bastion.yml
@@ -1,3 +1,12 @@
1
-bastion_user: slurm-app-ci
2
-bastion_ip: 128.232.222.183
+ci_cloud: "{{ lookup('env', 'CI_CLOUD') }}"
+bastion_config:
3
+ ARCUS:
4
+ user: slurm-app-ci
5
+ ip: 128.232.222.183
6
+ SMS:
7
+ user: steveb
8
+ ip: 185.45.78.150
9
+# NB: The bastion_{user,ip} variables are used directly in the CI workflow too
10
+bastion_user: "{{ bastion_config[ci_cloud].user }}"
11
+bastion_ip: "{{ bastion_config[ci_cloud].ip }}"
12
ansible_ssh_common_args: '-o ProxyCommand="ssh {{ bastion_user }}@{{ bastion_ip }} -W %h:%p"'
0 commit comments