Skip to content

Instantly share code, notes, and snippets.

@andrewwatson
Created May 13, 2015 17:52
Show Gist options
  • Save andrewwatson/7b5d55da555f20482b17 to your computer and use it in GitHub Desktop.
Save andrewwatson/7b5d55da555f20482b17 to your computer and use it in GitHub Desktop.
consul-template attempt
{{range services}}
{{.Name | regexMatch "manager"}}
listen http-in
bind *:{{key "service/{{.Name}}/bindport"}}
{{range service .Name}}
server {{.Node}} {{.Address}}:{{.Port}}{{end}}
{{end}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment