Open drnic opened 9 years ago
Hopefully I'm describing the issue correctly.
I discovered that this template when deployed by bosh-init was converting:
-forwardHost=<%= my_ip %>
into
-forwardHost=
see - https://github.com/concourse/concourse/blob/master/jobs/tsa/templates/tsa_ctl.erb#L66
https://github.com/concourse/concourse/blob/master/jobs/tsa/templates/tsa_ctl.erb#L15-L34 in discover_external_ip it finds the first spec.networks and returns network.ip as ""
discover_external_ip
spec.networks
network.ip
Notable it doesn't raise an error - https://github.com/concourse/concourse/blob/master/jobs/tsa/templates/tsa_ctl.erb#L27
raise
Yup, currently bosh-init does not properly populate network info before rendering templates.
Hopefully I'm describing the issue correctly.
I discovered that this template when deployed by bosh-init was converting:
into
see - https://github.com/concourse/concourse/blob/master/jobs/tsa/templates/tsa_ctl.erb#L66
https://github.com/concourse/concourse/blob/master/jobs/tsa/templates/tsa_ctl.erb#L15-L34 in
discover_external_ip
it finds the firstspec.networks
and returnsnetwork.ip
as ""Notable it doesn't
raise
an error - https://github.com/concourse/concourse/blob/master/jobs/tsa/templates/tsa_ctl.erb#L27