Merge "Set right endpoint IP in ssh tunnel"

This commit is contained in:
Jenkins 2017-09-20 21:01:59 +00:00 committed by Gerrit Code Review
commit 4c8716ec29
2 changed files with 2 additions and 1 deletions

View File

@ -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) }}"

View File

@ -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