terraform/builtin/providers
danielcbright 8921e10d71 Added softlayer virtual guest and ssh keys functionality:
Here is an example that will setup the following:
+ An SSH key resource.
+ A virtual server resource that uses an existing SSH key.
+ A virtual server resource using an existing SSH key and a Terraform managed SSH key (created as "test_key_1" in the example below).

(create this as sl.tf and run terraform commands from this directory):
```hcl
provider "softlayer" {
    username = ""
    api_key = ""
}

resource "softlayer_ssh_key" "test_key_1" {
    name = "test_key_1"
    public_key = "${file(\"~/.ssh/id_rsa_test_key_1.pub\")}"
    # Windows Example:
    # public_key = "${file(\"C:\ssh\keys\path\id_rsa_test_key_1.pub\")}"
}

resource "softlayer_virtual_guest" "my_server_1" {
    name = "my_server_1"
    domain = "example.com"
    ssh_keys = ["123456"]
    image = "DEBIAN_7_64"
    region = "ams01"
    public_network_speed = 10
    cpu = 1
    ram = 1024
}

resource "softlayer_virtual_guest" "my_server_2" {
    name = "my_server_2"
    domain = "example.com"
    ssh_keys = ["123456", "${softlayer_ssh_key.test_key_1.id}"]
    image = "CENTOS_6_64"
    region = "ams01"
    public_network_speed = 10
    cpu = 1
    ram = 1024
}
```

You'll need to provide your SoftLayer username and API key,
so that Terraform can connect. If you don't want to put
credentials in your configuration file, you can leave them
out:

```
provider "softlayer" {}
```

...and instead set these environment variables:

- **SOFTLAYER_USERNAME**: Your SoftLayer username
- **SOFTLAYER_API_KEY**: Your API key
2016-05-03 15:58:58 -05:00
..
atlas
aws provider/aws: Improve error handling in IAM Server Certificates (#6442) 2016-05-02 15:36:50 -05:00
azure provider/azure: Randomize DNS Server acctest names 2016-04-27 12:12:53 -05:00
azurerm Azure does not allow CDN ports to be 0 (#6329) 2016-04-25 19:15:14 +01:00
chef
clc [clc] collapse tests, code in server dep for lbp 2016-03-22 12:14:04 -07:00
cloudflare providers/cloudflare: use cloudflare-go 2016-05-03 09:48:50 -07:00
cloudstack Use the new functionality offered by the `go-cloudstack` package 2016-04-22 12:23:47 +02:00
cobbler provider/cobbler: acc tests TF and script tweaks 2016-04-16 08:55:45 -05:00
consul consul_key_prefix resource 2016-04-02 20:37:11 -07:00
datadog Fix import formatting across code base 2016-04-18 17:28:46 -07:00
digitalocean provider/digitalocean: Check for nil response 2016-03-21 14:25:11 +00:00
dme
dnsimple
docker provider/docker: don't crash with empty commands 2016-04-29 18:54:45 -05:00
dyn
fastly provider/fastly: Add S3 Log Streaming to Fastly Service (#6378) 2016-04-28 10:36:25 -05:00
github Fix import formatting across code base 2016-04-18 17:28:46 -07:00
google Fix import formatting across code base 2016-04-18 17:28:46 -07:00
heroku builtin: Refactor resource.Retry to clarify return 2016-03-09 17:37:56 -06:00
influxdb provider/influxdb: vendor dependencies 2016-03-20 14:55:48 -05:00
librato provider/librato: Use metric name created by agent 2016-04-29 16:27:51 -05:00
mailgun builtin: Refactor resource.Retry to clarify return 2016-03-09 17:37:56 -06:00
mysql
null
openstack provider/openstack: Neutron security group resources 2016-05-03 09:18:48 +00:00
packet
postgresql provider/postgresql: default ssl_mode is "prefer" 2016-04-17 08:32:02 -07:00
powerdns Use schema funcs for reading values from the env 2016-04-08 17:28:54 -04:00
rundeck
softlayer Added softlayer virtual guest and ssh keys functionality: 2016-05-03 15:58:58 -05:00
statuscake
template deps: Update call sites of hil.Eval from update 2016-04-18 16:37:12 -07:00
terraform
test core: Fix issues with ignore_changes 2016-03-21 14:20:36 -05:00
tls
triton Merge pull request #6418 from asteris-llc/f-triton-nic 2016-04-29 14:06:00 -05:00
ultradns UltraDNS Provider 2016-03-20 12:10:59 -05:00
vcd builtin: Refactor resource.Retry to clarify return 2016-03-09 17:37:56 -06:00
vsphere provider/vsphere: IPv6 support. (#6457) 2016-05-03 18:27:24 +02:00