terraform/builtin/bins
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
..
provider-atlas
provider-aws
provider-azure First few azure resources... 2015-05-28 00:51:17 +02:00
provider-azurerm provider/azurerm: Clean up work for base provider 2015-12-15 18:31:02 -05:00
provider-chef Entry point for chef provider. 2015-12-13 15:09:16 -08:00
provider-clc snapshot from CenturyLinkLabs/terraform-provider-clc 2016-03-21 08:58:37 -07:00
provider-cloudflare
provider-cloudstack
provider-cobbler provider/cobbler: Cobbler Provider 2016-04-16 08:54:59 -05:00
provider-consul
provider-datadog provider/datadog: Initial commit 2016-02-22 15:02:35 -05:00
provider-digitalocean
provider-dme
provider-dnsimple
provider-docker Initial commit. This adds the initial bits of a Docker provider. 2015-03-10 15:38:52 +00:00
provider-dyn add Dyn provider 2015-07-31 08:39:52 -04:00
provider-fastly provider/fastly: Add Fastly Provider, ServiceV1 resource 2016-03-23 14:53:50 -05:00
provider-github Add Github Organization provider. 2016-03-08 23:06:30 +01:00
provider-google
provider-heroku
provider-influxdb InfluxDB provider 2016-03-20 14:53:34 -05:00
provider-librato provider/librato: Add Librato provider 2016-04-29 14:49:55 -05:00
provider-mailgun
provider-mysql mysql provider and mysql_database resource. 2015-12-16 17:59:35 -08:00
provider-null
provider-openstack crud for openstack servers v2 2015-03-31 09:54:45 -06:00
provider-packet Packet bare metal cloud hosting platform provider 2015-06-07 16:34:08 -04:00
provider-postgresql postgresql provider with "database" and "role" resources 2015-12-03 23:44:20 -08:00
provider-powerdns provider/powerdns: Move provider implementation from personal repo 2016-01-28 10:10:46 -05:00
provider-rundeck New provider for Rundeck, a runbook automation system. 2015-09-03 10:01:32 -07:00
provider-softlayer Added softlayer virtual guest and ssh keys functionality: 2016-05-03 15:58:58 -05:00
provider-statuscake Created the initial scaffolding for the statuscake provider 2015-11-27 15:03:13 +00:00
provider-template providers: add template provider 2015-05-01 16:59:49 -07:00
provider-terraform providers/terraform: remote state resource 2015-03-11 18:17:47 -05:00
provider-tls tls provider 2015-10-22 21:48:32 -07:00
provider-triton provider/triton: New provider for Joyent Triton 2016-03-20 20:15:17 +00:00
provider-ultradns UltraDNS Provider 2016-03-20 12:10:59 -05:00
provider-vcd Added vCloud Director provider with tests and provider documentation 2015-11-02 13:39:25 +00:00
provider-vsphere Add VMware vSphere provider support 2015-10-06 13:25:05 +09:00
provisioner-chef Refactored quite a few things after review... 2015-05-08 23:25:24 +02:00
provisioner-file
provisioner-local-exec
provisioner-remote-exec