Set right endpoint IP in ssh tunnel
Depending on the TripleO configuration, the endpoints can be deployed with tls or without it. The public endpoint IP will defer depending on this setting, therefor it should be taken into account when assigning the ssh tunnel IP. Otherwise traffic is not correctly tunnel when TripleO is deployed with tls (undercloud_generate_service_certificate = true) Change-Id: I0f312f78a87182116e0c4b274ed145f3f08c8197
This commit is contained in:
parent
df8d4e0a38
commit
d146beeb91
|
@ -6,4 +6,3 @@ undercloud_custom_vmlinuz: "{{ working_dir }}/overcloud-full.vmlinuz"
|
|||
undercloud_custom_initrd: "{{ working_dir }}/overcloud-full.initrd"
|
||||
|
||||
ssh_tunnel_service_file: ssh-tunnel.service.j2
|
||||
ssh_tunnel_target_ip: "{{ undercloud_network_cidr|nthhost(1) }}"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
{% set ssh_tunnel_target_ip = "https://%s" % undercloud_network_cidr|nthhost(2) if undercloud_generate_service_certificate|bool else "http://%s:3000" % undercloud_network_cidr|nthhost(1) %}
|
||||
|
||||
[Unit]
|
||||
Description=Set up ssh tunneling for TripleO
|
||||
After=network.target
|
||||
|
|
Loading…
Reference in New Issue