Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues rendering ERB template for nats.private_key and nats.cert_chain properties #10

Open
jriguera opened this issue Jun 5, 2024 · 0 comments

Comments

@jriguera
Copy link

jriguera commented Jun 5, 2024

We are trying to define those properties for NATs TLS configuration as they are not part of the links, but the ERB template does not render the values, they are always empty.

We think the problem is in

nats_cert_chain = ''
nats_private_key = ''
if_p("nats.cert_chain") { |val| nats_cert_chain = val }
if_p("nats.private_key") { |val| nats_private_key = val }

The values of those 2 variables always are empty

 nats_cert_chain = '' 
 nats_private_key = '' 

The solution we have found is changing the code to:

  nats_cert_chain = ''
  nats_private_key = ''
  if_p("nats.cert_chain") do |val|
    nats_cert_chain = val
  end
  if_p("nats.private_key") do |val|
    nats_private_key = val
  end

We are using BOSH Director versions:

Version            280.0.23 (00000000)
Director Stemcell  -/1.423 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant