{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-triton/issues/14","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-triton","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-triton/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-triton/issues/14/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-triton/issues/14/events","html_url":"https://github.com/terraform-providers/terraform-provider-triton/pull/14","id":245873584,"number":14,"title":"triton_machine: Metadata stanza for defining custom user k/v pairs","user":{"login":"cheapRoc","id":140,"avatar_url":"https://avatars2.githubusercontent.com/u/140?v=4","gravatar_id":"","url":"https://api.github.com/users/cheapRoc","html_url":"https://github.com/cheapRoc","followers_url":"https://api.github.com/users/cheapRoc/followers","following_url":"https://api.github.com/users/cheapRoc/following{/other_user}","gists_url":"https://api.github.com/users/cheapRoc/gists{/gist_id}","starred_url":"https://api.github.com/users/cheapRoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheapRoc/subscriptions","organizations_url":"https://api.github.com/users/cheapRoc/orgs","repos_url":"https://api.github.com/users/cheapRoc/repos","events_url":"https://api.github.com/users/cheapRoc/events{/privacy}","received_events_url":"https://api.github.com/users/cheapRoc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-26T22:29:32Z","updated_at":"2017-08-07T19:17:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-triton/pulls/14","html_url":"https://github.com/terraform-providers/terraform-provider-triton/pull/14","diff_url":"https://github.com/terraform-providers/terraform-provider-triton/pull/14.diff","patch_url":"https://github.com/terraform-providers/terraform-provider-triton/pull/14.patch"},"body":"Ref #11 #5\r\n\r\nThis implements the new metadata stanza while also cleaning up how other metadata derived features are handled. There's also better support for metadata state changes using Triton's DeleteMetadata API that was recently included in `triton-go`.\r\n\r\nHere's an example of user defined metadata within `triton_machine`.\r\n\r\n```hcl\r\nresource \"triton_machine\" \"tf-base\" {\r\n  name = \"tf-base-${count.index}\"\r\n  package = \"g4-highcpu-512M\"\r\n  image = \"${data.triton_image.base.id}\"\r\n\r\n  tags {\r\n    version = \"1.0.0\"\r\n    role = \"test\"\r\n  }\r\n\r\n  metadata {\r\n    seed_token = \"f693276a3b89dc35dc5e9adbcf80b2ff\"\r\n  }\r\n}\r\n```\r\n\r\nMetadata can be added/updated externally to Terraform and refreshed into the state file after. It also can apply to a running instance without any reboot.\r\n\r\n/cc @jen20 @sean- "},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-triton/issues/comments/320755181","html_url":"https://github.com/terraform-providers/terraform-provider-triton/pull/14#issuecomment-320755181","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-triton/issues/14","id":320755181,"user":{"login":"cheapRoc","id":140,"avatar_url":"https://avatars2.githubusercontent.com/u/140?v=4","gravatar_id":"","url":"https://api.github.com/users/cheapRoc","html_url":"https://github.com/cheapRoc","followers_url":"https://api.github.com/users/cheapRoc/followers","following_url":"https://api.github.com/users/cheapRoc/following{/other_user}","gists_url":"https://api.github.com/users/cheapRoc/gists{/gist_id}","starred_url":"https://api.github.com/users/cheapRoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheapRoc/subscriptions","organizations_url":"https://api.github.com/users/cheapRoc/orgs","repos_url":"https://api.github.com/users/cheapRoc/repos","events_url":"https://api.github.com/users/cheapRoc/events{/privacy}","received_events_url":"https://api.github.com/users/cheapRoc/received_events","type":"User","site_admin":false},"created_at":"2017-08-07T19:17:51Z","updated_at":"2017-08-07T19:17:51Z","body":"Close this PR once #17 has been merged. #17 includes both CNS and Metadata features."}}
{"actor":{"display_login":"cheapRoc"}}