terraform/website/source/layouts
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
..
svg annoucnement bnr 2016-04-11 13:02:15 -05:00
_announcement-bnr.erb annoucnement bnr 2016-04-11 13:02:15 -05:00
_footer.erb Track enhanced links 2016-05-02 15:56:12 -04:00
_header.erb annoucnement bnr 2016-04-11 13:02:15 -05:00
_meta.erb annoucnement bnr 2016-04-11 13:02:15 -05:00
_sidebar.erb fix incorrect link 2015-11-06 15:45:02 -08:00
atlas.erb Do matching in sidebar_current via regex or equal sign 2015-05-08 10:40:51 +01:00
aws.erb provider/aws: Add support for api_gateway_account (#6321) 2016-04-27 13:08:59 +01:00
azure.erb Added SQL Database Server Firewall Rule resource. 2015-06-29 21:36:02 +03:00
azurerm.erb documentation: Reshuffle the AzureRM provider documentation headings 2016-03-22 14:17:36 +00:00
chef.erb fix typo in chef docs sidebar 2016-01-08 15:28:51 -05:00
clc.erb snapshot from CenturyLinkLabs/terraform-provider-clc 2016-03-21 08:58:37 -07:00
cloudflare.erb Do matching in sidebar_current via regex or equal sign 2015-05-08 10:40:51 +01:00
cloudstack.erb Make the CloudStack provider more inline with the other provider 2016-04-04 22:16:15 +02:00
cobbler.erb provider/cobbler: Cobbler Provider 2016-04-16 08:54:59 -05:00
consul.erb website: Add consul_key_prefix link to Consul provider navbar 2016-04-22 14:07:35 -07:00
datadog.erb Add Datadog doco. 2016-02-22 15:04:29 -05:00
digitalocean.erb Adding the work to assign a Floating IP to a Droplet 2015-11-20 19:12:31 +02:00
dme.erb Do matching in sidebar_current via regex or equal sign 2015-05-08 10:40:51 +01:00
dnsimple.erb Do matching in sidebar_current via regex or equal sign 2015-05-08 10:40:51 +01:00
docker.erb provider/docker: Add missing sidebar doc link 2016-01-15 21:36:17 +00:00
docs.erb Added softlayer virtual guest and ssh keys functionality: 2016-05-03 15:58:58 -05:00
downloads.erb website: fixing downloads page 2014-07-27 16:11:21 -04:00
dyn.erb Dyn provider docs 2015-07-31 08:39:52 -04:00
fastly.erb provider/fastly: Add Fastly Provider, ServiceV1 resource 2016-03-23 14:53:50 -05:00
github.erb Capitalize the H in GitHub 2016-04-07 10:26:01 -04:00
google.erb Correct markdown for google_compute_instance_group and attach to index 2016-03-21 10:29:59 -07:00
heroku.erb Do matching in sidebar_current via regex or equal sign 2015-05-08 10:40:51 +01:00
influxdb.erb Docs for InfluxDB provider and database resource 2016-03-20 14:53:34 -05:00
inner.erb update footer to be sticky 2014-07-28 00:08:17 -07:00
intro.erb Do matching in sidebar_current via regex or equal sign 2015-05-08 10:40:51 +01:00
layout.erb in progress header redesign 2015-11-06 12:35:24 -08:00
librato.erb provider/librato: Add Librato provider 2016-04-29 14:49:55 -05:00
mailgun.erb Do matching in sidebar_current via regex or equal sign 2015-05-08 10:40:51 +01:00
mysql.erb mysql provider and mysql_database resource. 2015-12-16 17:59:35 -08:00
openstack.erb provider/openstack: Neutron security group resources 2016-05-03 09:18:48 +00:00
packet.erb Add Packet layout. 2015-10-09 17:41:55 -04:00
postgresql.erb postgresql provider with "database" and "role" resources 2015-12-03 23:44:20 -08:00
powerdns.erb provider/powerdns: Add site documentation 2016-01-28 10:10:46 -05:00
remotestate.erb docs: Create new section for remote state backends 2016-01-18 08:08:19 +00:00
rundeck.erb Rundeck provider documentation for the website. 2015-09-03 10:01:32 -07:00
softlayer.erb Added softlayer virtual guest and ssh keys functionality: 2016-05-03 15:58:58 -05:00
statuscake.erb Adding some documentation for the StatusCake provider 2015-11-30 10:44:21 +00:00
template.erb docs: cloudinit_config - correct syntax and add sidebar link 2016-01-08 13:34:16 -06:00
terraform.erb Add Terraform/Remote State documentation to provider/resource section. 2015-12-27 19:04:27 +01:00
tls.erb docs: add locally_signed_cert to tls sidenav 2016-01-27 08:13:59 -05:00
triton.erb Fix spacing in Triton resources sidebar. (#6240) 2016-04-19 17:53:51 +01:00
ultradns.erb UltraDNS Provider 2016-03-20 12:10:59 -05:00
vcd.erb Minor doc updates 2015-11-11 07:43:36 +00:00
vsphere.erb vsphere_folder resource missing in vsphere provider layout 2016-03-09 23:16:12 +00:00