Skip to content

Commit baa2a0b

Browse files
authored
Merge pull request #32 from telpelt/lnxocp03
fix port forward related code in tunnel.sh and profile_lnxocp03.yaml
2 parents f1e2974 + f8a81da commit baa2a0b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libvirt/tunnel/profile_lnxocp03.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
profile:
22
arch: "s390x"
33
cluster_capacity: 2
4-
cluster_id: 0
4+
cluster_id: 3
55
environment: "bastion-z"
66
libvirt:
77
bastion-port: 16512
@@ -16,8 +16,8 @@ https:
1616
bastion-port: 8446
1717
target-port: 443
1818
bastion0ssh:
19-
bastion-port: 1076
19+
bastion-port: 1036
2020
target-port: 22
2121
bastion1ssh:
22-
bastion-port: 1077
22+
bastion-port: 1046
2323
target-port: 22

libvirt/tunnel/tunnel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ PORTS+=" -R $(yq eval '.https.bastion-port' ${filename}):127.0.0.1:$(yq eval '.h
4747

4848
declare -a BASTION_ADDRS=( "192.168.126.10" "192.168.1.10" "192.168.2.10" "192.168.3.10" "192.168.4.10" "192.168.6.10" )
4949

50-
for CLUSTER_NUM in $(seq 0 ${CLUSTER_CAPACITY})
50+
for CLUSTER_NUM in $(seq 0 $((CLUSTER_CAPACITY-1)) )
5151
do
5252
BASTION_SSH=".bastion${CLUSTER_NUM}ssh"
5353
BASTION_ADDR=${BASTION_ADDRS[${CLUSTER_NUM}]}

0 commit comments

Comments
 (0)