From 9998339a0432f84c7d6f1bc99345bea24e0754b9 Mon Sep 17 00:00:00 2001 From: Jack Pearkes Date: Fri, 25 Jul 2014 12:28:11 -0400 Subject: [PATCH] website: add cloudflare docs --- .../cloudflare/resource_cloudflare_record.go | 1 - .../providers/cloudflare/index.html.markdown | 37 +++++++++++++++ .../cloudflare/r/record.html.markdown | 46 +++++++++++++++++++ 3 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 website/source/docs/providers/cloudflare/index.html.markdown create mode 100644 website/source/docs/providers/cloudflare/r/record.html.markdown diff --git a/builtin/providers/cloudflare/resource_cloudflare_record.go b/builtin/providers/cloudflare/resource_cloudflare_record.go index 6c6701633..25be2532f 100644 --- a/builtin/providers/cloudflare/resource_cloudflare_record.go +++ b/builtin/providers/cloudflare/resource_cloudflare_record.go @@ -135,7 +135,6 @@ func resource_cloudflare_record_diff( "priority", "ttl", "hostname", - "ttl", }, ComputedAttrsUpdate: []string{}, diff --git a/website/source/docs/providers/cloudflare/index.html.markdown b/website/source/docs/providers/cloudflare/index.html.markdown new file mode 100644 index 000000000..a8c0cd353 --- /dev/null +++ b/website/source/docs/providers/cloudflare/index.html.markdown @@ -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 + + diff --git a/website/source/docs/providers/cloudflare/r/record.html.markdown b/website/source/docs/providers/cloudflare/r/record.html.markdown new file mode 100644 index 000000000..55a09eb6a --- /dev/null +++ b/website/source/docs/providers/cloudflare/r/record.html.markdown @@ -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 +