{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/680","labels_url":"https://api.github.com/repos/hashicorp/nomad/issues/680/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/nomad/issues/680/comments","events_url":"https://api.github.com/repos/hashicorp/nomad/issues/680/events","html_url":"https://github.com/hashicorp/nomad/issues/680","id":126865645,"number":680,"title":"Consul-template as Nomad job?","user":{"login":"adrianlop","id":2879742,"avatar_url":"https://avatars.githubusercontent.com/u/2879742?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianlop","html_url":"https://github.com/adrianlop","followers_url":"https://api.github.com/users/adrianlop/followers","following_url":"https://api.github.com/users/adrianlop/following{/other_user}","gists_url":"https://api.github.com/users/adrianlop/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianlop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianlop/subscriptions","organizations_url":"https://api.github.com/users/adrianlop/orgs","repos_url":"https://api.github.com/users/adrianlop/repos","events_url":"https://api.github.com/users/adrianlop/events{/privacy}","received_events_url":"https://api.github.com/users/adrianlop/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-15T12:43:08Z","updated_at":"2016-01-20T08:51:40Z","closed_at":"2016-01-19T12:49:59Z","body":"Hello,\r\n\r\nFor me, it makes sense to run Hashicorp's `consul-template` daemons with Nomad (`driver=raw_exec`), because it's easier to schedule them in Nomad by selecting hosts with `constraints`, etc.\r\n\r\nI'd like them to be registered in Consul as services (or checks?) too, so I can verify all my consul-templates are generating the final files I need. Since consul-template is just an app which doesn't listen on a tcp/udp port, is it possible to register them as a service without having a port?\r\n\r\nIf this doesn't make sense for you, any better idea to manage consul-template the easy way?\r\n\r\nThank you in advance guys!"},"comment":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/comments/173132203","html_url":"https://github.com/hashicorp/nomad/issues/680#issuecomment-173132203","issue_url":"https://api.github.com/repos/hashicorp/nomad/issues/680","id":173132203,"user":{"login":"adrianlop","id":2879742,"avatar_url":"https://avatars.githubusercontent.com/u/2879742?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianlop","html_url":"https://github.com/adrianlop","followers_url":"https://api.github.com/users/adrianlop/followers","following_url":"https://api.github.com/users/adrianlop/following{/other_user}","gists_url":"https://api.github.com/users/adrianlop/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianlop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianlop/subscriptions","organizations_url":"https://api.github.com/users/adrianlop/orgs","repos_url":"https://api.github.com/users/adrianlop/repos","events_url":"https://api.github.com/users/adrianlop/events{/privacy}","received_events_url":"https://api.github.com/users/adrianlop/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T08:51:40Z","updated_at":"2016-01-20T08:51:40Z","body":"@diptanu it makes perfect sense! elegant solution. I'll try it out. thanks :+1: "}}