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

Updated consul_snapshot.json.j2 to handle TLS correctly and fix line … #301

Merged
merged 2 commits into from
Jul 26, 2019

Conversation

jasonneurohr
Copy link
Contributor

…formatting

The current template sets the http_addr to 127.0.0.1:8501 when consul_tls_enable is true. This causes the error below:

Snapshot agent error: Unexpected response code: 400 (Client sent an HTTP request to an HTTPS server.#12)

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.

@brianshumate
Copy link
Contributor

Thanks!

@brianshumate brianshumate merged commit b89e82c into ansible-collections:master Jul 26, 2019
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

Successfully merging this pull request may close these issues.

3 participants