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

Add CONSUL_HTTP_SSL to systemd unit file #19

Closed
spuder opened this issue Apr 15, 2020 · 1 comment
Closed

Add CONSUL_HTTP_SSL to systemd unit file #19

spuder opened this issue Apr 15, 2020 · 1 comment

Comments

@spuder
Copy link

spuder commented Apr 15, 2020

If you are using consul with TLS enabled, the following must be added to the systemd unit file

Environment="CONSUL_HTTP_SSL=true"
Environment="CONSUL_CACERT=/path/to/cacert.pem"
Environment="CONSUL_CLIENT_CERT=/path/to/clientcert.pem"
Environment="CONSUL_CLIENT_KEY=/path/to/clientkey.pem"

hashicorp/nomad#6594

@spuder
Copy link
Author

spuder commented Apr 16, 2020

Just noticed that the unit file has this line:

EnvironmentFile=-/etc/sysconfig/nomad

Thus making it possible to inject environment variables by managing that file in a pupppet role/profile.

@spuder spuder closed this as completed Apr 16, 2020
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