{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul-template/issues/486","labels_url":"https://api.github.com/repos/hashicorp/consul-template/issues/486/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul-template/issues/486/comments","events_url":"https://api.github.com/repos/hashicorp/consul-template/issues/486/events","html_url":"https://github.com/hashicorp/consul-template/issues/486","id":122659482,"number":486,"title":"Regarding: Consul-Template using multiple Consul servers #334","user":{"login":"vLifeOfBrian","id":13646540,"avatar_url":"https://avatars.githubusercontent.com/u/13646540?v=3","gravatar_id":"","url":"https://api.github.com/users/vLifeOfBrian","html_url":"https://github.com/vLifeOfBrian","followers_url":"https://api.github.com/users/vLifeOfBrian/followers","following_url":"https://api.github.com/users/vLifeOfBrian/following{/other_user}","gists_url":"https://api.github.com/users/vLifeOfBrian/gists{/gist_id}","starred_url":"https://api.github.com/users/vLifeOfBrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vLifeOfBrian/subscriptions","organizations_url":"https://api.github.com/users/vLifeOfBrian/orgs","repos_url":"https://api.github.com/users/vLifeOfBrian/repos","events_url":"https://api.github.com/users/vLifeOfBrian/events{/privacy}","received_events_url":"https://api.github.com/users/vLifeOfBrian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-17T04:37:35Z","updated_at":"2015-12-17T05:59:07Z","closed_at":null,"body":"In our configuration we have 3 Consul servers in a cluster, and the consul-template daemon is installed on 2 Nginx servers external to the Consul cluster. How would you configure consul-template to be aware of the Consul cluster DNS? using the -consul flag for consul.service.consul doesn't find the Consul cluster.\r\n\r\nIs there any documentation that describes deploying Consul/consul-template in a distributed production environment? I haven't been able to find anything on this topic beyond this issue. All the documentation I can find seems to be based on all the components being installed on the same instance."},"comment":{"url":"https://api.github.com/repos/hashicorp/consul-template/issues/comments/165349201","html_url":"https://github.com/hashicorp/consul-template/issues/486#issuecomment-165349201","issue_url":"https://api.github.com/repos/hashicorp/consul-template/issues/486","id":165349201,"user":{"login":"sethvargo","id":408570,"avatar_url":"https://avatars.githubusercontent.com/u/408570?v=3","gravatar_id":"","url":"https://api.github.com/users/sethvargo","html_url":"https://github.com/sethvargo","followers_url":"https://api.github.com/users/sethvargo/followers","following_url":"https://api.github.com/users/sethvargo/following{/other_user}","gists_url":"https://api.github.com/users/sethvargo/gists{/gist_id}","starred_url":"https://api.github.com/users/sethvargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethvargo/subscriptions","organizations_url":"https://api.github.com/users/sethvargo/orgs","repos_url":"https://api.github.com/users/sethvargo/repos","events_url":"https://api.github.com/users/sethvargo/events{/privacy}","received_events_url":"https://api.github.com/users/sethvargo/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T05:59:06Z","updated_at":"2015-12-17T05:59:06Z","body":"Hi @vLifeOfBrian \r\n\r\nThank you for opening an issue. As is always true with any Consul tool, you should almost always talk to the _local_ consul agent running on 127.0.0.1:8500. The local Consul agent multiplexes requests to the Consul cluster, and the cluster handles responses (either via stale queries or request forwarding).\r\n\r\nThe local Consul agent (running in client mode on your nginx servers) connects to your Consul cluster. This is also how you register that node and its services.\r\n\r\nDoes that help answer your question?"}}