website: Document the new DO resources

This commit is contained in:
Armon Dadgar 2014-07-24 19:16:03 -04:00
parent feca2a045f
commit 3346af4757
2 changed files with 79 additions and 0 deletions

33
r/domain.html.markdown Normal file
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

46
r/record.html.markdown Normal file
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