{"action":"created","issue":{"url":"https://api.github.com/repos/platanus/terraform-provider-rancher/issues/6","repository_url":"https://api.github.com/repos/platanus/terraform-provider-rancher","labels_url":"https://api.github.com/repos/platanus/terraform-provider-rancher/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/platanus/terraform-provider-rancher/issues/6/comments","events_url":"https://api.github.com/repos/platanus/terraform-provider-rancher/issues/6/events","html_url":"https://github.com/platanus/terraform-provider-rancher/pull/6","id":179322131,"number":6,"title":"Add stack resource type","user":{"login":"raphink","id":650430,"avatar_url":"https://avatars.githubusercontent.com/u/650430?v=3","gravatar_id":"","url":"https://api.github.com/users/raphink","html_url":"https://github.com/raphink","followers_url":"https://api.github.com/users/raphink/followers","following_url":"https://api.github.com/users/raphink/following{/other_user}","gists_url":"https://api.github.com/users/raphink/gists{/gist_id}","starred_url":"https://api.github.com/users/raphink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphink/subscriptions","organizations_url":"https://api.github.com/users/raphink/orgs","repos_url":"https://api.github.com/users/raphink/repos","events_url":"https://api.github.com/users/raphink/events{/privacy}","received_events_url":"https://api.github.com/users/raphink/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-26T19:57:04Z","updated_at":"2016-09-28T14:53:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/platanus/terraform-provider-rancher/pulls/6","html_url":"https://github.com/platanus/terraform-provider-rancher/pull/6","diff_url":"https://github.com/platanus/terraform-provider-rancher/pull/6.diff","patch_url":"https://github.com/platanus/terraform-provider-rancher/pull/6.patch"},"body":"WIP: this allows to create/update/destroy stacks with basic information (`name`, `description`, `environment_id`), but I aim to support much more, as implemented in my [current type](https://github.com/camptocamp/terraform-provider-rancher/blob/master/rancher/resource_rancher_stack.go):\r\n\r\n* `docker_compose`\r\n* `rancher_compose`\r\n* `environment`\r\n* `external_id`\r\n* `start_on_create`\r\n\r\nTaken together, these 5 parameters allow to fully create a stack from a catalog template entry, which is extremely useful:\r\n\r\n* if `external_id` is specified, then use the catalog API to retrieve the `docker_compose`, `rancher_compose` and default `environment` values\r\n* let user override `docker_compose`, `rancher_compose` and `environment` keys\r\n\r\nIn addition to supporting them on create, I actually want to support updating them, which means:\r\n\r\n* if `external_id` is modified, download new versions of `docker_compose` and `rancher_compose` from the catalog API\r\n* if `docker_compose`, `rancher_compose` or `environment` is modified, upgrade the stack with these new parameters. Question: do we want to add a parameter for automatically finalizing the upgrade (e.g. `finalize_upgrade = true`)?\r\n\r\n@blackjid do you have any comments on that API before I start implementing it?"},"comment":{"url":"https://api.github.com/repos/platanus/terraform-provider-rancher/issues/comments/250190726","html_url":"https://github.com/platanus/terraform-provider-rancher/pull/6#issuecomment-250190726","issue_url":"https://api.github.com/repos/platanus/terraform-provider-rancher/issues/6","id":250190726,"user":{"login":"blackjid","id":228037,"avatar_url":"https://avatars.githubusercontent.com/u/228037?v=3","gravatar_id":"","url":"https://api.github.com/users/blackjid","html_url":"https://github.com/blackjid","followers_url":"https://api.github.com/users/blackjid/followers","following_url":"https://api.github.com/users/blackjid/following{/other_user}","gists_url":"https://api.github.com/users/blackjid/gists{/gist_id}","starred_url":"https://api.github.com/users/blackjid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackjid/subscriptions","organizations_url":"https://api.github.com/users/blackjid/orgs","repos_url":"https://api.github.com/users/blackjid/repos","events_url":"https://api.github.com/users/blackjid/events{/privacy}","received_events_url":"https://api.github.com/users/blackjid/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T14:53:35Z","updated_at":"2016-09-28T14:53:35Z","body":"Ok!, awesome!, \r\nWhat do you think if we add an issue to document we need to fix this?? \r\n\r\nAlso maybe squash some commits??, or maybe we can just merge with squash and merge. What do you think?"}}
{"actor":{"display_login":"blackjid"}}