website: add cloudflare docs

This commit is contained in:
Jack Pearkes 2014-07-25 12:28:11 -04:00
parent 85944ab205
commit 9998339a04
3 changed files with 83 additions and 1 deletions

View File

@ -135,7 +135,6 @@ func resource_cloudflare_record_diff(
"priority", "priority",
"ttl", "ttl",
"hostname", "hostname",
"ttl",
}, },
ComputedAttrsUpdate: []string{}, ComputedAttrsUpdate: []string{},

View File

@ -0,0 +1,37 @@
---
layout: "cloudflare"
page_title: "Provider: Cloudflare"
sidebar_current: "docs-cloudflare-index"
---
# CloudFlare Provider
The CloudFlare provider is used to interact with the
DNS resources supported by CloudFlare. The provider needs to be configured
with the proper credentials before it can be used.
Use the navigation to the left to read about the available resources.
## Example Usage
```
# Configure the CloudFlare provider
provider "cloudflare" {
email = "${var.cloudflare_email}"
token = "${var.cloudflare_token}"
}
# Create a record
resource "cloudflare_record" "www" {
...
}
```
## Argument Reference
The following arguments are supported:
* `email` - (Required) The email associated with the account
* `token` - (Required) The Cloudflare API token

View File

@ -0,0 +1,46 @@
---
layout: "cloudflare"
page_title: "CloudFlare: cloudflare_record"
sidebar_current: "docs-cloudflare-resource-record"
---
# cloudflare\_record
Provides a Cloudflare record resource.
## Example Usage
```
# Add a record to the domain
resource "cloudflare_record" "foobar" {
domain = "${var.cloudflare_domain}"
name = "terraform"
value = "192.168.0.11"
type = "A"
ttl = 3600
}
```
## Argument Reference
The following arguments are supported:
* `domain` - (Required) The domain to add the record to
* `name` - (Required) The name of the record
* `value` - (Required) The value of the record
* `type` - (Required) The type of the record
* `ttl` - (Optional) The TTL of the record
* `priority` - (Optional) The TTL of the record
## Attributes Reference
The following attributes are exported:
* `id` - The record ID
* `name` - The name of the record
* `value` - The value of the record
* `type` - The type of the record
* `ttl` - The ttl of the record
* `priority` - The priority of the record
* `hostname` - The FQDN of the record