{"action":"created","issue":{"url":"https://api.github.com/repos/docker/machine/issues/2422","labels_url":"https://api.github.com/repos/docker/machine/issues/2422/labels{/name}","comments_url":"https://api.github.com/repos/docker/machine/issues/2422/comments","events_url":"https://api.github.com/repos/docker/machine/issues/2422/events","html_url":"https://github.com/docker/machine/pull/2422","id":118999758,"number":2422,"title":"(WIP) Machine declaration","user":{"login":"kunalkushwaha","id":2758433,"avatar_url":"https://avatars.githubusercontent.com/u/2758433?v=3","gravatar_id":"","url":"https://api.github.com/users/kunalkushwaha","html_url":"https://github.com/kunalkushwaha","followers_url":"https://api.github.com/users/kunalkushwaha/followers","following_url":"https://api.github.com/users/kunalkushwaha/following{/other_user}","gists_url":"https://api.github.com/users/kunalkushwaha/gists{/gist_id}","starred_url":"https://api.github.com/users/kunalkushwaha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunalkushwaha/subscriptions","organizations_url":"https://api.github.com/users/kunalkushwaha/orgs","repos_url":"https://api.github.com/users/kunalkushwaha/repos","events_url":"https://api.github.com/users/kunalkushwaha/events{/privacy}","received_events_url":"https://api.github.com/users/kunalkushwaha/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/machine/labels/kind/feature","name":"kind/feature","color":"bfd4f2"},{"url":"https://api.github.com/repos/docker/machine/labels/status/0-triage","name":"status/0-triage","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/docker/machine/milestones/10","html_url":"https://github.com/docker/machine/milestones/0.X.0","labels_url":"https://api.github.com/repos/docker/machine/milestones/10/labels","id":1391375,"number":10,"title":"0.X.0","description":"This milestone will contain all the ticket we don't want to close but that we can't allocate to a nearer release.","creator":{"login":"dgageot","id":153495,"avatar_url":"https://avatars.githubusercontent.com/u/153495?v=3","gravatar_id":"","url":"https://api.github.com/users/dgageot","html_url":"https://github.com/dgageot","followers_url":"https://api.github.com/users/dgageot/followers","following_url":"https://api.github.com/users/dgageot/following{/other_user}","gists_url":"https://api.github.com/users/dgageot/gists{/gist_id}","starred_url":"https://api.github.com/users/dgageot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgageot/subscriptions","organizations_url":"https://api.github.com/users/dgageot/orgs","repos_url":"https://api.github.com/users/dgageot/repos","events_url":"https://api.github.com/users/dgageot/events{/privacy}","received_events_url":"https://api.github.com/users/dgageot/received_events","type":"User","site_admin":false},"open_issues":35,"closed_issues":4,"state":"open","created_at":"2015-11-03T14:33:19Z","updated_at":"2015-11-26T10:12:17Z","due_on":"2016-12-30T23:00:00Z","closed_at":null},"comments":1,"created_at":"2015-11-26T08:57:49Z","updated_at":"2015-12-01T05:57:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/machine/pulls/2422","html_url":"https://github.com/docker/machine/pull/2422","diff_url":"https://github.com/docker/machine/pull/2422.diff","patch_url":"https://github.com/docker/machine/pull/2422.patch"},"body":"This is draft code for review.\r\n\r\nWith reference to Issues https://github.com/docker/machine/issues/773, https://github.com/docker/machine/issues/2303, This code implements a very basic implementation of ``docker-machine apply`` command.\r\n\r\nWith this path, One or more machines can be created at one go with ``docker-machine apply`` command.\r\n- This simply provides alternative to multiple ``docker-machine create`` command.\r\n- supports swarm.\r\n- Does not provide separate mechanism to load secrets from.\r\n- serially create machines.\r\n\r\n\r\nNeed your feedback and start discussion again, so these issues #773 & #2303 can be focused.\r\n\r\nA sample yaml config file as below it understands.\r\n``` yaml\r\n---\r\n- name: test-host0\r\n  driver: virtualbox\r\n  driveroptions:\r\n    image-name: \"boot2docker\"\r\n  engineoptions:\r\n    env:\r\n    - HTTP_PROXY=\"http://example.com:8080\"\r\n    - HTTPS_PROXY=\"http://example.com:8080\"\r\n    - NO_PROXY=\"192.168.99.101\"\r\n    arbitraryflags:\r\n    - cluster-advertise=eth1:3376\r\n    - cluster-store=consul://192.168.99.101:8500\r\n  swarmoptions:\r\n    isswarm: true\r\n    master: true\r\n    discovery: consul://192.168.99.101:8500\r\n- name: test-host1\r\n  driver: virtualbox\r\n  driveroptions:\r\n    image-name: \"boot2docker\"\r\n  engineoptions:\r\n    env:\r\n    - HTTP_PROXY=\"http://example.com:8080\"\r\n    - HTTPS_PROXY=\"http://example.com:8080\"\r\n    - NO_PROXY=\"192.168.99.101\"\r\n    arbitraryflags:\r\n    - cluster-advertise=eth1:3376\r\n    - cluster-store=consul://192.168.99.101:8500\r\n  swarmoptions:\r\n    isswarm: true\r\n    master: true\r\n    discovery: consul://192.168.99.101:8500\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/docker/machine/issues/comments/160862536","html_url":"https://github.com/docker/machine/pull/2422#issuecomment-160862536","issue_url":"https://api.github.com/repos/docker/machine/issues/2422","id":160862536,"user":{"login":"nathanleclaire","id":1476820,"avatar_url":"https://avatars.githubusercontent.com/u/1476820?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanleclaire","html_url":"https://github.com/nathanleclaire","followers_url":"https://api.github.com/users/nathanleclaire/followers","following_url":"https://api.github.com/users/nathanleclaire/following{/other_user}","gists_url":"https://api.github.com/users/nathanleclaire/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanleclaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanleclaire/subscriptions","organizations_url":"https://api.github.com/users/nathanleclaire/orgs","repos_url":"https://api.github.com/users/nathanleclaire/repos","events_url":"https://api.github.com/users/nathanleclaire/events{/privacy}","received_events_url":"https://api.github.com/users/nathanleclaire/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T05:57:47Z","updated_at":"2015-12-01T05:57:47Z","body":"I'm definitely interested.  We can't merge it in right away for a variety of reasons, but maybe we can work together towards getting this in an experimental state and then refining it for 0.6.0."}}