Skip to content

Commit 8686850

Browse files
committed
provide bastion details for both CI clouds
1 parent 6f328c5 commit 8686850

File tree

1 file changed

+11
-2
lines changed
  • environments/.stackhpc/inventory/group_vars/all

1 file changed

+11
-2
lines changed
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1-
bastion_user: slurm-app-ci
2-
bastion_ip: 128.232.222.183
1+
ci_cloud: "{{ lookup('env', 'CI_CLOUD') }}"
2+
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 }}"
312
ansible_ssh_common_args: '-o ProxyCommand="ssh {{ bastion_user }}@{{ bastion_ip }} -W %h:%p"'

0 commit comments

Comments
 (0)