Created
May 13, 2015 17:52
-
-
Save andrewwatson/7b5d55da555f20482b17 to your computer and use it in GitHub Desktop.
consul-template attempt
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 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