{"action":"created","issue":{"url":"https://api.github.com/repos/magneticio/vamp/issues/688","repository_url":"https://api.github.com/repos/magneticio/vamp","labels_url":"https://api.github.com/repos/magneticio/vamp/issues/688/labels{/name}","comments_url":"https://api.github.com/repos/magneticio/vamp/issues/688/comments","events_url":"https://api.github.com/repos/magneticio/vamp/issues/688/events","html_url":"https://github.com/magneticio/vamp/issues/688","id":161275098,"number":688,"title":"Virtualhost weirdness","user":{"login":"harmw","id":5871646,"avatar_url":"https://avatars.githubusercontent.com/u/5871646?v=3","gravatar_id":"","url":"https://api.github.com/users/harmw","html_url":"https://github.com/harmw","followers_url":"https://api.github.com/users/harmw/followers","following_url":"https://api.github.com/users/harmw/following{/other_user}","gists_url":"https://api.github.com/users/harmw/gists{/gist_id}","starred_url":"https://api.github.com/users/harmw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harmw/subscriptions","organizations_url":"https://api.github.com/users/harmw/orgs","repos_url":"https://api.github.com/users/harmw/repos","events_url":"https://api.github.com/users/harmw/events{/privacy}","received_events_url":"https://api.github.com/users/harmw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-20T19:31:16Z","updated_at":"2016-06-20T21:29:38Z","closed_at":null,"body":"I've got the following blueprint loaded in Vamp:\r\n```\r\nname: crowbar\r\nclusters:\r\n  crowbar:\r\n    services:\r\n      breed:\r\n        name: odd-scenario\r\n        deployable: magneticio/sava:1.0.0\r\n        ports:\r\n          entry: 8080/http\r\n        environment_variables:\r\n          SERVICE_NAME: crowbar\r\n      scale:\r\n        cpu: 0.1\r\n        memory: 64MB\r\n        instances: 1\r\n```\r\nThis will produce the following vhost in the Vamp haproxy.cfg:\r\n```\r\n[..]\r\n  # destination: crowbar/crowbar/entry\r\n  acl 4b5876404b7360f0 hdr(host) -i entry.crowbar.crowbar.blaze\r\n  use_backend ada682028708a5f19a9a0b6f19791c305530bfab  if 4b5876404b7360f0  \r\n```\r\nThe vhost **entry.crowbar.crowbar.blaze** mentioned here doesn't make very much sense on our platform, where we're used to names like **crowbar.blaze**. How should I proceed here?\r\n\r\nMy expectation is such a name would be handled by a given haproxy _frontend_ behind which all the routing (A/B stuff, canary releasing) takes place. Eg. all our services connect with _crowbar.blaze_, they are not bothered with the Vamp canary-release plans and routing stuff."},"comment":{"url":"https://api.github.com/repos/magneticio/vamp/issues/comments/227275440","html_url":"https://github.com/magneticio/vamp/issues/688#issuecomment-227275440","issue_url":"https://api.github.com/repos/magneticio/vamp/issues/688","id":227275440,"user":{"login":"harmw","id":5871646,"avatar_url":"https://avatars.githubusercontent.com/u/5871646?v=3","gravatar_id":"","url":"https://api.github.com/users/harmw","html_url":"https://github.com/harmw","followers_url":"https://api.github.com/users/harmw/followers","following_url":"https://api.github.com/users/harmw/following{/other_user}","gists_url":"https://api.github.com/users/harmw/gists{/gist_id}","starred_url":"https://api.github.com/users/harmw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harmw/subscriptions","organizations_url":"https://api.github.com/users/harmw/orgs","repos_url":"https://api.github.com/users/harmw/repos","events_url":"https://api.github.com/users/harmw/events{/privacy}","received_events_url":"https://api.github.com/users/harmw/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T21:29:37Z","updated_at":"2016-06-20T21:29:37Z","body":"Ah cool, using that piece of `routing` actually works out fine. I'll do some testing tomorrow, but looking at haproxy.cfg it now looks ok."}}
{"actor":{"display_login":"harmw"}}