From decc837fa3436be6681aaf54a3c17141caf0eaeb Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Thu, 24 Jul 2014 19:16:03 -0400 Subject: [PATCH] website: Document the new DO resources --- .../docs/providers/do/r/domain.html.markdown | 33 +++++++++++++ .../docs/providers/do/r/record.html.markdown | 46 +++++++++++++++++++ website/source/layouts/digitalocean.erb | 8 ++++ 3 files changed, 87 insertions(+) create mode 100644 website/source/docs/providers/do/r/domain.html.markdown create mode 100644 website/source/docs/providers/do/r/record.html.markdown diff --git a/website/source/docs/providers/do/r/domain.html.markdown b/website/source/docs/providers/do/r/domain.html.markdown new file mode 100644 index 000000000..d1baae682 --- /dev/null +++ b/website/source/docs/providers/do/r/domain.html.markdown @@ -0,0 +1,33 @@ +--- +layout: "digitalocean" +page_title: "DigitalOcean: digitalocean_domain" +sidebar_current: "docs-do-resource-domain" +--- + +# digitalocean\_domain + +Provides a DigitalOcean domain resource. + +## Example Usage + +``` +# Create a new domain record +resource "digitalocean_domain" "default" { + name = "www.example.com" + ip_address = "${digitalocean_droplet.foo.ipv4_address}" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `name` - (Required) The name of the domain +* `ip_address` - (Required) The IP address of the domain + +## Attributes Reference + +The following attributes are exported: + +* `id` - The name of the domain + diff --git a/website/source/docs/providers/do/r/record.html.markdown b/website/source/docs/providers/do/r/record.html.markdown new file mode 100644 index 000000000..bfd6ee7c7 --- /dev/null +++ b/website/source/docs/providers/do/r/record.html.markdown @@ -0,0 +1,46 @@ +--- +layout: "digitalocean" +page_title: "DigitalOcean: digitalocean_record" +sidebar_current: "docs-do-resource-record" +--- + +# digitalocean\_record + +Provides a DigitalOcean domain resource. + +## Example Usage + +``` +# Create a new domain record +resource "digitalocean_domain" "default" { + name = "www.example.com" + ip_address = "${digitalocean_droplet.foo.ipv4_address}" +} + +# Add a record to the domain +resource "digitalocean_record" "foobar" { + domain = "${digitalocean_domain.default.name}" + type = "A" + name = "foobar" + value = "192.168.0.11" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `type` - (Required) The type of record +* `domain` - (Required) The domain to add the record to +* `value` - (Optional) The value of the record +* `name` - (Optional) The name of the record +* `weight` - (Optional) The weight of the record +* `port` - (Optional) The port of the record +* `priority` - (Optional) The priority of the record + +## Attributes Reference + +The following attributes are exported: + +* `id` - The record ID + diff --git a/website/source/layouts/digitalocean.erb b/website/source/layouts/digitalocean.erb index 1a6023be2..cfffcd85f 100644 --- a/website/source/layouts/digitalocean.erb +++ b/website/source/layouts/digitalocean.erb @@ -13,9 +13,17 @@ > Resources