Skip to content

Commit decc837

Browse files
committed
website: Document the new DO resources
1 parent 058dfaf commit decc837

3 files changed

Lines changed: 87 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
layout: "digitalocean"
3+
page_title: "DigitalOcean: digitalocean_domain"
4+
sidebar_current: "docs-do-resource-domain"
5+
---
6+
7+
# digitalocean\_domain
8+
9+
Provides a DigitalOcean domain resource.
10+
11+
## Example Usage
12+
13+
```
14+
# Create a new domain record
15+
resource "digitalocean_domain" "default" {
16+
name = "www.example.com"
17+
ip_address = "${digitalocean_droplet.foo.ipv4_address}"
18+
}
19+
```
20+
21+
## Argument Reference
22+
23+
The following arguments are supported:
24+
25+
* `name` - (Required) The name of the domain
26+
* `ip_address` - (Required) The IP address of the domain
27+
28+
## Attributes Reference
29+
30+
The following attributes are exported:
31+
32+
* `id` - The name of the domain
33+
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
layout: "digitalocean"
3+
page_title: "DigitalOcean: digitalocean_record"
4+
sidebar_current: "docs-do-resource-record"
5+
---
6+
7+
# digitalocean\_record
8+
9+
Provides a DigitalOcean domain resource.
10+
11+
## Example Usage
12+
13+
```
14+
# Create a new domain record
15+
resource "digitalocean_domain" "default" {
16+
name = "www.example.com"
17+
ip_address = "${digitalocean_droplet.foo.ipv4_address}"
18+
}
19+
20+
# Add a record to the domain
21+
resource "digitalocean_record" "foobar" {
22+
domain = "${digitalocean_domain.default.name}"
23+
type = "A"
24+
name = "foobar"
25+
value = "192.168.0.11"
26+
}
27+
```
28+
29+
## Argument Reference
30+
31+
The following arguments are supported:
32+
33+
* `type` - (Required) The type of record
34+
* `domain` - (Required) The domain to add the record to
35+
* `value` - (Optional) The value of the record
36+
* `name` - (Optional) The name of the record
37+
* `weight` - (Optional) The weight of the record
38+
* `port` - (Optional) The port of the record
39+
* `priority` - (Optional) The priority of the record
40+
41+
## Attributes Reference
42+
43+
The following attributes are exported:
44+
45+
* `id` - The record ID
46+

website/source/layouts/digitalocean.erb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,17 @@
1313
<li<%= sidebar_current("docs-do-resource") %>>
1414
<a href="#">Resources</a>
1515
<ul class="nav nav-visible">
16+
<li<%= sidebar_current("docs-do-resource-domain") %>>
17+
<a href="/docs/providers/do/r/domain.html">digitalocean_domain</a>
18+
</li>
19+
1620
<li<%= sidebar_current("docs-do-resource-droplet") %>>
1721
<a href="/docs/providers/do/r/droplet.html">digitalocean_droplet</a>
1822
</li>
23+
24+
<li<%= sidebar_current("docs-do-resource-record") %>>
25+
<a href="/docs/providers/do/r/record.html">digitalocean_record</a>
26+
</li>
1927
</ul>
2028
</li>
2129
</ul>

0 commit comments

Comments
 (0)