Seth Vargo

Results 200 comments of Seth Vargo

@NoumanSaleem ah. We've actually thought about this. In your example, you'll just want two loops: ``` liquid {{service "users.api"}} thing{{end}} {{service "blogs.api"}} thing{{end}} ``` Does that make sense?

@armon what are your thoughts here?

@armon that won't work as expected because there's two phases to the compilation of a template - first we get the list of dependencies we need, then we query for...

@williambailey the problem with that approach is that Consul Template is a two-pass implementation. The first time it reads the template to figure out what services/keys to watch, then it...

@NoumanSaleem does the new `byTag` functionality provide the functionality you need?

@sielaq I haven't added a way to iterate over all services yet, but that's "coming soon"(tm) :smile:

Hello, After some research, I do not think providing a `services` function is currently possible due to [an upstream bug in Consul](https://github.com/hashicorp/consul/issues/377). Once that issue has been resolved, we can...

Hi @srobertson As you can see from the conversation and label, this is an upstream bug in Consul and Consul Template cannot query by tag until Consul supports it.

@bryanlarsen it's slightly different. The participants in this issue want to query the services **catalog**, not the health endpoint.

@sielaq `services` is different than `service`. `services` returns a list of Catalog services, but `service` returns a health check service object, which has significantly more information. This is still an...