{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/4327","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/4327/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/4327/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/4327/events","html_url":"https://github.com/hashicorp/terraform/pull/4327","id":122342496,"number":4327,"title":"New Provider: SoftLayer","user":{"login":"danielcbright","id":12632831,"avatar_url":"https://avatars.githubusercontent.com/u/12632831?v=3","gravatar_id":"","url":"https://api.github.com/users/danielcbright","html_url":"https://github.com/danielcbright","followers_url":"https://api.github.com/users/danielcbright/followers","following_url":"https://api.github.com/users/danielcbright/following{/other_user}","gists_url":"https://api.github.com/users/danielcbright/gists{/gist_id}","starred_url":"https://api.github.com/users/danielcbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielcbright/subscriptions","organizations_url":"https://api.github.com/users/danielcbright/orgs","repos_url":"https://api.github.com/users/danielcbright/repos","events_url":"https://api.github.com/users/danielcbright/events{/privacy}","received_events_url":"https://api.github.com/users/danielcbright/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/enhancement","name":"enhancement","color":"d4c5f9"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/new-provider","name":"new-provider","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-12-15T19:09:03Z","updated_at":"2016-04-26T19:47:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hashicorp/terraform/pulls/4327","html_url":"https://github.com/hashicorp/terraform/pull/4327","diff_url":"https://github.com/hashicorp/terraform/pull/4327.diff","patch_url":"https://github.com/hashicorp/terraform/pull/4327.patch"},"body":"### This PR will add a new cloud provider to the Terraform mix - [IBM's SoftLayer](http://www.softlayer.com/)\r\n\r\nI'm starting this PR with support for `virtual_guest` and `ssh_key` resources, these resources are complete enough for most basic needs when spinning up a virtual_guest on SoftLayer. After this PR is accepted we will be creating PR's for even more significant updates not only to `virtual_guest` and `ssh_key` but support for `dns_domain`, `dns_domain_resource` and `network_application_delivery_controller` *(Netscaler VPX)* resources.\r\n\r\n- [x] ~~Depends on https://github.com/maximilien/softlayer-go/pull/81 being accepted and merged.~~\r\n- [x] ~~Depends on https://github.com/maximilien/softlayer-go/pull/85 being accepted and merged.~~\r\n- [x] ~~Complete Resource Documentation for Website~~\r\n- [ ] Gather input from Hashicorp and the community\r\n- [ ] Fix any issues/bugs that are brought up\r\n\r\n## Using the provider\r\n\r\nHere is an example that will setup the following:\r\n+ An SSH key resource.\r\n+ A virtual server resource that uses an existing SSH key.\r\n+ A virtual server resource using an existing SSH key and a Terraform managed SSH key (created as \"test_key_1\" in the example below).\r\n\r\n(create this as sl.tf and run terraform commands from this directory):\r\n```hcl\r\nprovider \"softlayer\" {\r\n    username = \"\"\r\n    api_key = \"\"\r\n}\r\n\r\n# This will create a new SSH key that will show up under the \\\r\n# Devices>Manage>SSH Keys in the SoftLayer console.\r\nresource \"softlayer_ssh_key\" \"test_key_1\" {\r\n    name = \"test_key_1\"\r\n    public_key = \"${file(\\\"~/.ssh/id_rsa_test_key_1.pub\\\")}\"\r\n    # Windows Example:\r\n    # public_key = \"${file(\\\"C:\\ssh\\keys\\path\\id_rsa_test_key_1.pub\\\")}\"\r\n}\r\n\r\n# Virtual Server created with existing SSH Key already in SoftLayer \\\r\n# inventory and not created using this Terraform template.\r\nresource \"softlayer_virtual_guest\" \"my_server_1\" {\r\n    name = \"my_server_1\"\r\n    domain = \"example.com\"\r\n    ssh_keys = [\"123456\"]\r\n    image = \"DEBIAN_7_64\"\r\n    region = \"ams01\"\r\n    public_network_speed = 10\r\n    cpu = 1\r\n    ram = 1024\r\n}\r\n\r\n# Virtual Server created with a mix of previously existing and \\\r\n# Terraform created/managed resources.\r\nresource \"softlayer_virtual_guest\" \"my_server_2\" {\r\n    name = \"my_server_2\"\r\n    domain = \"example.com\"\r\n    ssh_keys = [\"123456\", \"${softlayer_ssh_key.test_key_1.id}\"]\r\n    image = \"CENTOS_6_64\"\r\n    region = \"ams01\"\r\n    public_network_speed = 10\r\n    cpu = 1\r\n    ram = 1024\r\n}\r\n```\r\n\r\nYou'll need to provide your SoftLayer username and API key,\r\nso that Terraform can connect. If you don't want to put\r\ncredentials in your configuration file, you can leave them\r\nout:\r\n\r\n```\r\nprovider \"softlayer\" {}\r\n```\r\n\r\n...and instead set these environment variables:\r\n\r\n- **SOFTLAYER_USERNAME**: Your SoftLayer username\r\n- **SOFTLAYER_API_KEY**: Your API key"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/214864443","html_url":"https://github.com/hashicorp/terraform/pull/4327#issuecomment-214864443","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/4327","id":214864443,"user":{"login":"danielcbright","id":12632831,"avatar_url":"https://avatars.githubusercontent.com/u/12632831?v=3","gravatar_id":"","url":"https://api.github.com/users/danielcbright","html_url":"https://github.com/danielcbright","followers_url":"https://api.github.com/users/danielcbright/followers","following_url":"https://api.github.com/users/danielcbright/following{/other_user}","gists_url":"https://api.github.com/users/danielcbright/gists{/gist_id}","starred_url":"https://api.github.com/users/danielcbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielcbright/subscriptions","organizations_url":"https://api.github.com/users/danielcbright/orgs","repos_url":"https://api.github.com/users/danielcbright/repos","events_url":"https://api.github.com/users/danielcbright/events{/privacy}","received_events_url":"https://api.github.com/users/danielcbright/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T19:47:28Z","updated_at":"2016-04-26T19:47:28Z","body":"Thanks @jen20 that's great to hear!, please let me know if you need any help getting a Softlayer account sorted for testing purposes."}}