Created
November 17, 2018 04:39
-
-
Save OneCricketeer/c5543c5a489ed9df0ade0739fdb0483b to your computer and use it in GitHub Desktop.
consul-template CSV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ range $index, $element := service "tag.service" }}{{if $index}},{{else}}{{end}}http://{{ .Address }}:{{ .Port }}{{ end }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
consul-template -consul-addr "$CONSUL_HOST" -template "service-template.tmpl:/tmp/service-template.out" -once