Created
May 13, 2015 18:13
-
-
Save andrewwatson/867522fea73fbd01881f to your computer and use it in GitHub Desktop.
better consul-template service iteration
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}} | |
{{if .Name | regexMatch "data*"}} | |
listen http-in | |
bind *:{{env "ENTERPRISE_BIND"}}{{range service .Name}} | |
server {{.Node}}{{.Port}} {{.Address}}:{{.Port}}{{end}} | |
{{end}} | |
{{end}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment