-
Notifications
You must be signed in to change notification settings - Fork 25
Consul key/value collision #47
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
base: master
Are you sure you want to change the base?
Changes from all commits
c7572ee
37f720e
a2e6afb
91b5d21
7029bef
55fd2e1
b2e346a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
{{if key "nginx/acme/cert"}}{{key "nginx/acme/cert"}}{{end}} | ||
{{ $service_name := env "SERVICE_NAME" }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. WARNING!!! No default There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should have a default service name There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, honestly I'm not sure how to do it and I didn't have time yesterday to look. Just needed it working to show off a few things There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This appears fixed with |
||
{{ $service_name := or $service_name "nginx" }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not saying the following with certainty, but there's a chance we'll also (or alternatively) want to set If I remember correctly, that syntax would look like:
|
||
{{if key (print $service_name "/acme/cert")}}{{key (print $service_name "/acme/key")}}{{end}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
{{if key "nginx/acme/chain"}}{{key "nginx/acme/chain"}}{{end}} | ||
{{ $service_name := env "SERVICE_NAME" }} | ||
{{ $service_name := or $service_name "nginx" }} | ||
{{if key (print $service_name "/acme/chain")}}{{key (print $service_name "/acme/chain")}}{{end}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{{if key "nginx/acme/challenge/token-filename"}}{{key "nginx/acme/challenge/token-filename"}}{{end}} | ||
{{if key "nginx/acme/challenge/token-value"}}{{key "nginx/acme/challenge/token-value"}}{{end}} | ||
{{if key "nginx/acme/challenge/last-token-filename"}}{{key "nginx/acme/challenge/last-token-filename"}}{{end}} | ||
{{ $service_name := env "SERVICE_NAME" }} | ||
{{ $service_name := or $service_name "nginx" }} | ||
{{if key (print $service_name "/acme/token-filename")}}{{key (print $service_name "/acme/token-filename")}}{{end}} | ||
{{if key (print $service_name "/acme/token-value")}}{{key (print $service_name "/acme/token-value")}}{{end}} | ||
{{if key (print $service_name "/acme/last-token-filename")}}{{key (print $service_name "/acme/last-token-filename")}}{{end}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
{{if key "nginx/acme/fullchain"}}{{key "nginx/acme/fullchain"}}{{end}} | ||
{{ $service_name := env "SERVICE_NAME" }} | ||
{{ $service_name := or $service_name "nginx" }} | ||
{{if key (print $service_name "/acme/fullchain")}}{{key (print $service_name "/acme/fullchain")}}{{end}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
{{if key "nginx/acme/key"}}{{key "nginx/acme/key"}}{{end}} | ||
{{ $service_name := env "SERVICE_NAME" }} | ||
{{ $service_name := or $service_name "nginx" }} | ||
{{if key (print $service_name "/acme/key")}}{{key (print $service_name "/acme/key")}}{{end}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was changed as a warning was output to stdout by consul-template