{"action":"created","issue":{"url":"https://api.github.com/repos/metacloud/molecule/issues/56","labels_url":"https://api.github.com/repos/metacloud/molecule/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/metacloud/molecule/issues/56/comments","events_url":"https://api.github.com/repos/metacloud/molecule/issues/56/events","html_url":"https://github.com/metacloud/molecule/pull/56","id":123116979,"number":56,"title":"Sanitize the generated hostname","user":{"login":"retr0h","id":9895,"avatar_url":"https://avatars.githubusercontent.com/u/9895?v=3","gravatar_id":"","url":"https://api.github.com/users/retr0h","html_url":"https://github.com/retr0h","followers_url":"https://api.github.com/users/retr0h/followers","following_url":"https://api.github.com/users/retr0h/following{/other_user}","gists_url":"https://api.github.com/users/retr0h/gists{/gist_id}","starred_url":"https://api.github.com/users/retr0h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retr0h/subscriptions","organizations_url":"https://api.github.com/users/retr0h/orgs","repos_url":"https://api.github.com/users/retr0h/repos","events_url":"https://api.github.com/users/retr0h/events{/privacy}","received_events_url":"https://api.github.com/users/retr0h/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-19T23:47:44Z","updated_at":"2015-12-20T17:31:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/metacloud/molecule/pulls/56","html_url":"https://github.com/metacloud/molecule/pull/56","diff_url":"https://github.com/metacloud/molecule/pull/56.diff","patch_url":"https://github.com/metacloud/molecule/pull/56.patch"},"body":"Since we take the role name provided by `molecule init`, and pass that\r\nto Vagrant, we can generate invalid hosnames[1].  I am going to assume\r\nroles are generally named in such a way that they are valid Vagrant\r\nhostnames[1].  However, roles tend to use underscore and dashes\r\ninterchangeably.  Also, when using roles from galaxy they contain\r\n`namespace.rolename`.  Linux will treat these hostnames PS1 as\r\n`namespace` which is just lame.\r\n\r\n[1] The hostname set for the VM should only contain letters, numbers,\r\n    hyphens or dots. It cannot start with a hyphen or dot."},"comment":{"url":"https://api.github.com/repos/metacloud/molecule/issues/comments/166138109","html_url":"https://github.com/metacloud/molecule/pull/56#issuecomment-166138109","issue_url":"https://api.github.com/repos/metacloud/molecule/issues/56","id":166138109,"user":{"login":"rgreinho","id":6969134,"avatar_url":"https://avatars.githubusercontent.com/u/6969134?v=3","gravatar_id":"","url":"https://api.github.com/users/rgreinho","html_url":"https://github.com/rgreinho","followers_url":"https://api.github.com/users/rgreinho/followers","following_url":"https://api.github.com/users/rgreinho/following{/other_user}","gists_url":"https://api.github.com/users/rgreinho/gists{/gist_id}","starred_url":"https://api.github.com/users/rgreinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgreinho/subscriptions","organizations_url":"https://api.github.com/users/rgreinho/orgs","repos_url":"https://api.github.com/users/rgreinho/repos","events_url":"https://api.github.com/users/rgreinho/events{/privacy}","received_events_url":"https://api.github.com/users/rgreinho/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T17:31:37Z","updated_at":"2015-12-20T17:31:37Z","body":":+1: "}}