website: Document the new DO resources

This commit is contained in:
Armon Dadgar 2014-07-24 19:16:03 -04:00
parent 058dfaf2c4
commit decc837fa3
3 changed files with 87 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -13,9 +13,17 @@
<li<%= sidebar_current("docs-do-resource") %>> <li<%= sidebar_current("docs-do-resource") %>>
<a href="#">Resources</a> <a href="#">Resources</a>
<ul class="nav nav-visible"> <ul class="nav nav-visible">
<li<%= sidebar_current("docs-do-resource-domain") %>>
<a href="/docs/providers/do/r/domain.html">digitalocean_domain</a>
</li>
<li<%= sidebar_current("docs-do-resource-droplet") %>> <li<%= sidebar_current("docs-do-resource-droplet") %>>
<a href="/docs/providers/do/r/droplet.html">digitalocean_droplet</a> <a href="/docs/providers/do/r/droplet.html">digitalocean_droplet</a>
</li> </li>
<li<%= sidebar_current("docs-do-resource-record") %>>
<a href="/docs/providers/do/r/record.html">digitalocean_record</a>
</li>
</ul> </ul>
</li> </li>
</ul> </ul>