Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Updated consul_snapshot.json.j2 to handle TLS correctly and fix line … #301
The current template sets the http_addr to 127.0.0.1:8501 when consul_tls_enable is true. This causes the error below:
To correct this I've added another if check for consul_tls_enable which will append https:// to the front of the consul_client_address value. I also adjusted the whitespace control to format the file.
Before the change the "ca_file": line is appended to the end of the "http_addr" line, as is "log": to the "key_file": line.
@jasonneurohr can you update the documentation? Our consul playbook doesn't have
Did you perhaps mean to use