{"action":"opened","number":6346,"pull_request":{"url":"https://api.github.com/repos/mitchellh/vagrant/pulls/6346","id":46551833,"html_url":"https://github.com/mitchellh/vagrant/pull/6346","diff_url":"https://github.com/mitchellh/vagrant/pull/6346.diff","patch_url":"https://github.com/mitchellh/vagrant/pull/6346.patch","issue_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6346","number":6346,"state":"open","locked":false,"title":"provisioners/ansible: Put username in the inventory","user":{"login":"janek-warchol","id":1368508,"avatar_url":"https://avatars.githubusercontent.com/u/1368508?v=3","gravatar_id":"","url":"https://api.github.com/users/janek-warchol","html_url":"https://github.com/janek-warchol","followers_url":"https://api.github.com/users/janek-warchol/followers","following_url":"https://api.github.com/users/janek-warchol/following{/other_user}","gists_url":"https://api.github.com/users/janek-warchol/gists{/gist_id}","starred_url":"https://api.github.com/users/janek-warchol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janek-warchol/subscriptions","organizations_url":"https://api.github.com/users/janek-warchol/orgs","repos_url":"https://api.github.com/users/janek-warchol/repos","events_url":"https://api.github.com/users/janek-warchol/events{/privacy}","received_events_url":"https://api.github.com/users/janek-warchol/received_events","type":"User","site_admin":false},"body":"When running ansible provisioner on multiple VMs in parallel, vagrant\r\nwould by default feed just one ssh username to ansible.  Usually all\r\nmachines are provisioned using the same user, but it is possible that\r\nthey need different usernames.  By putting username in inventory we can\r\nsupport this scenario.\r\n\r\nPS this is the first time I do anything in Ruby, so please forgive me if I did something stupid!","created_at":"2015-10-01T17:22:13Z","updated_at":"2015-10-01T17:22:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mitchellh/vagrant/pulls/6346/commits","review_comments_url":"https://api.github.com/repos/mitchellh/vagrant/pulls/6346/comments","review_comment_url":"https://api.github.com/repos/mitchellh/vagrant/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/6346/comments","statuses_url":"https://api.github.com/repos/mitchellh/vagrant/statuses/109c95d7a024541c83c78e4a2e79eb48fda3ffdd","head":{"label":"janek-warchol:ansible-user-in-inventory","ref":"ansible-user-in-inventory","sha":"109c95d7a024541c83c78e4a2e79eb48fda3ffdd","user":{"login":"janek-warchol","id":1368508,"avatar_url":"https://avatars.githubusercontent.com/u/1368508?v=3","gravatar_id":"","url":"https://api.github.com/users/janek-warchol","html_url":"https://github.com/janek-warchol","followers_url":"https://api.github.com/users/janek-warchol/followers","following_url":"https://api.github.com/users/janek-warchol/following{/other_user}","gists_url":"https://api.github.com/users/janek-warchol/gists{/gist_id}","starred_url":"https://api.github.com/users/janek-warchol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janek-warchol/subscriptions","organizations_url":"https://api.github.com/users/janek-warchol/orgs","repos_url":"https://api.github.com/users/janek-warchol/repos","events_url":"https://api.github.com/users/janek-warchol/events{/privacy}","received_events_url":"https://api.github.com/users/janek-warchol/received_events","type":"User","site_admin":false},"repo":{"id":25161009,"name":"vagrant","full_name":"janek-warchol/vagrant","owner":{"login":"janek-warchol","id":1368508,"avatar_url":"https://avatars.githubusercontent.com/u/1368508?v=3","gravatar_id":"","url":"https://api.github.com/users/janek-warchol","html_url":"https://github.com/janek-warchol","followers_url":"https://api.github.com/users/janek-warchol/followers","following_url":"https://api.github.com/users/janek-warchol/following{/other_user}","gists_url":"https://api.github.com/users/janek-warchol/gists{/gist_id}","starred_url":"https://api.github.com/users/janek-warchol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janek-warchol/subscriptions","organizations_url":"https://api.github.com/users/janek-warchol/orgs","repos_url":"https://api.github.com/users/janek-warchol/repos","events_url":"https://api.github.com/users/janek-warchol/events{/privacy}","received_events_url":"https://api.github.com/users/janek-warchol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/janek-warchol/vagrant","description":"Vagrant is a tool for building and distributing development environments.","fork":true,"url":"https://api.github.com/repos/janek-warchol/vagrant","forks_url":"https://api.github.com/repos/janek-warchol/vagrant/forks","keys_url":"https://api.github.com/repos/janek-warchol/vagrant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/janek-warchol/vagrant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/janek-warchol/vagrant/teams","hooks_url":"https://api.github.com/repos/janek-warchol/vagrant/hooks","issue_events_url":"https://api.github.com/repos/janek-warchol/vagrant/issues/events{/number}","events_url":"https://api.github.com/repos/janek-warchol/vagrant/events","assignees_url":"https://api.github.com/repos/janek-warchol/vagrant/assignees{/user}","branches_url":"https://api.github.com/repos/janek-warchol/vagrant/branches{/branch}","tags_url":"https://api.github.com/repos/janek-warchol/vagrant/tags","blobs_url":"https://api.github.com/repos/janek-warchol/vagrant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/janek-warchol/vagrant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/janek-warchol/vagrant/git/refs{/sha}","trees_url":"https://api.github.com/repos/janek-warchol/vagrant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/janek-warchol/vagrant/statuses/{sha}","languages_url":"https://api.github.com/repos/janek-warchol/vagrant/languages","stargazers_url":"https://api.github.com/repos/janek-warchol/vagrant/stargazers","contributors_url":"https://api.github.com/repos/janek-warchol/vagrant/contributors","subscribers_url":"https://api.github.com/repos/janek-warchol/vagrant/subscribers","subscription_url":"https://api.github.com/repos/janek-warchol/vagrant/subscription","commits_url":"https://api.github.com/repos/janek-warchol/vagrant/commits{/sha}","git_commits_url":"https://api.github.com/repos/janek-warchol/vagrant/git/commits{/sha}","comments_url":"https://api.github.com/repos/janek-warchol/vagrant/comments{/number}","issue_comment_url":"https://api.github.com/repos/janek-warchol/vagrant/issues/comments{/number}","contents_url":"https://api.github.com/repos/janek-warchol/vagrant/contents/{+path}","compare_url":"https://api.github.com/repos/janek-warchol/vagrant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/janek-warchol/vagrant/merges","archive_url":"https://api.github.com/repos/janek-warchol/vagrant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/janek-warchol/vagrant/downloads","issues_url":"https://api.github.com/repos/janek-warchol/vagrant/issues{/number}","pulls_url":"https://api.github.com/repos/janek-warchol/vagrant/pulls{/number}","milestones_url":"https://api.github.com/repos/janek-warchol/vagrant/milestones{/number}","notifications_url":"https://api.github.com/repos/janek-warchol/vagrant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/janek-warchol/vagrant/labels{/name}","releases_url":"https://api.github.com/repos/janek-warchol/vagrant/releases{/id}","created_at":"2014-10-13T14:02:44Z","updated_at":"2015-10-01T16:55:54Z","pushed_at":"2015-10-01T17:21:03Z","git_url":"git://github.com/janek-warchol/vagrant.git","ssh_url":"git@github.com:janek-warchol/vagrant.git","clone_url":"https://github.com/janek-warchol/vagrant.git","svn_url":"https://github.com/janek-warchol/vagrant","homepage":"http://www.vagrantup.com","size":16271,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mitchellh:master","ref":"master","sha":"b721eb62cfbfa93895d0d4cf019436ab6b1df05d","user":{"login":"mitchellh","id":1299,"avatar_url":"https://avatars.githubusercontent.com/u/1299?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchellh","html_url":"https://github.com/mitchellh","followers_url":"https://api.github.com/users/mitchellh/followers","following_url":"https://api.github.com/users/mitchellh/following{/other_user}","gists_url":"https://api.github.com/users/mitchellh/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchellh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchellh/subscriptions","organizations_url":"https://api.github.com/users/mitchellh/orgs","repos_url":"https://api.github.com/users/mitchellh/repos","events_url":"https://api.github.com/users/mitchellh/events{/privacy}","received_events_url":"https://api.github.com/users/mitchellh/received_events","type":"User","site_admin":false},"repo":{"id":481872,"name":"vagrant","full_name":"mitchellh/vagrant","owner":{"login":"mitchellh","id":1299,"avatar_url":"https://avatars.githubusercontent.com/u/1299?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchellh","html_url":"https://github.com/mitchellh","followers_url":"https://api.github.com/users/mitchellh/followers","following_url":"https://api.github.com/users/mitchellh/following{/other_user}","gists_url":"https://api.github.com/users/mitchellh/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchellh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchellh/subscriptions","organizations_url":"https://api.github.com/users/mitchellh/orgs","repos_url":"https://api.github.com/users/mitchellh/repos","events_url":"https://api.github.com/users/mitchellh/events{/privacy}","received_events_url":"https://api.github.com/users/mitchellh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mitchellh/vagrant","description":"Vagrant is a tool for building and distributing development environments.","fork":false,"url":"https://api.github.com/repos/mitchellh/vagrant","forks_url":"https://api.github.com/repos/mitchellh/vagrant/forks","keys_url":"https://api.github.com/repos/mitchellh/vagrant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mitchellh/vagrant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mitchellh/vagrant/teams","hooks_url":"https://api.github.com/repos/mitchellh/vagrant/hooks","issue_events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/events{/number}","events_url":"https://api.github.com/repos/mitchellh/vagrant/events","assignees_url":"https://api.github.com/repos/mitchellh/vagrant/assignees{/user}","branches_url":"https://api.github.com/repos/mitchellh/vagrant/branches{/branch}","tags_url":"https://api.github.com/repos/mitchellh/vagrant/tags","blobs_url":"https://api.github.com/repos/mitchellh/vagrant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mitchellh/vagrant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mitchellh/vagrant/git/refs{/sha}","trees_url":"https://api.github.com/repos/mitchellh/vagrant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mitchellh/vagrant/statuses/{sha}","languages_url":"https://api.github.com/repos/mitchellh/vagrant/languages","stargazers_url":"https://api.github.com/repos/mitchellh/vagrant/stargazers","contributors_url":"https://api.github.com/repos/mitchellh/vagrant/contributors","subscribers_url":"https://api.github.com/repos/mitchellh/vagrant/subscribers","subscription_url":"https://api.github.com/repos/mitchellh/vagrant/subscription","commits_url":"https://api.github.com/repos/mitchellh/vagrant/commits{/sha}","git_commits_url":"https://api.github.com/repos/mitchellh/vagrant/git/commits{/sha}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/comments{/number}","issue_comment_url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments{/number}","contents_url":"https://api.github.com/repos/mitchellh/vagrant/contents/{+path}","compare_url":"https://api.github.com/repos/mitchellh/vagrant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mitchellh/vagrant/merges","archive_url":"https://api.github.com/repos/mitchellh/vagrant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mitchellh/vagrant/downloads","issues_url":"https://api.github.com/repos/mitchellh/vagrant/issues{/number}","pulls_url":"https://api.github.com/repos/mitchellh/vagrant/pulls{/number}","milestones_url":"https://api.github.com/repos/mitchellh/vagrant/milestones{/number}","notifications_url":"https://api.github.com/repos/mitchellh/vagrant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mitchellh/vagrant/labels{/name}","releases_url":"https://api.github.com/repos/mitchellh/vagrant/releases{/id}","created_at":"2010-01-21T08:34:27Z","updated_at":"2015-10-01T12:50:39Z","pushed_at":"2015-10-01T12:55:10Z","git_url":"git://github.com/mitchellh/vagrant.git","ssh_url":"git@github.com:mitchellh/vagrant.git","clone_url":"https://github.com/mitchellh/vagrant.git","svn_url":"https://github.com/mitchellh/vagrant","homepage":"http://www.vagrantup.com","size":43664,"stargazers_count":10276,"watchers_count":10276,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2187,"mirror_url":null,"open_issues_count":491,"forks":2187,"open_issues":491,"watchers":10276,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mitchellh/vagrant/pulls/6346"},"html":{"href":"https://github.com/mitchellh/vagrant/pull/6346"},"issue":{"href":"https://api.github.com/repos/mitchellh/vagrant/issues/6346"},"comments":{"href":"https://api.github.com/repos/mitchellh/vagrant/issues/6346/comments"},"review_comments":{"href":"https://api.github.com/repos/mitchellh/vagrant/pulls/6346/comments"},"review_comment":{"href":"https://api.github.com/repos/mitchellh/vagrant/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mitchellh/vagrant/pulls/6346/commits"},"statuses":{"href":"https://api.github.com/repos/mitchellh/vagrant/statuses/109c95d7a024541c83c78e4a2e79eb48fda3ffdd"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":5,"changed_files":1}}