From a5098f167c384fedaff1fb7d7b65307add0a32c7 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Thu, 24 Jul 2014 19:35:40 -0400 Subject: [PATCH] website: document dnsimple --- .../providers/dnsimple/index.html.markdown | 37 +++++++++++++++ .../providers/dnsimple/r/record.html.markdown | 46 +++++++++++++++++++ website/source/layouts/_footer.erb | 1 - website/source/layouts/dnsimple.erb | 26 +++++++++++ website/source/layouts/docs.erb | 4 ++ website/source/stylesheets/_docs.less | 1 + website/source/stylesheets/main.css | 3 ++ 7 files changed, 117 insertions(+), 1 deletion(-) create mode 100644 website/source/docs/providers/dnsimple/index.html.markdown create mode 100644 website/source/docs/providers/dnsimple/r/record.html.markdown create mode 100644 website/source/layouts/dnsimple.erb diff --git a/website/source/docs/providers/dnsimple/index.html.markdown b/website/source/docs/providers/dnsimple/index.html.markdown new file mode 100644 index 000000000..ac84f177d --- /dev/null +++ b/website/source/docs/providers/dnsimple/index.html.markdown @@ -0,0 +1,37 @@ +--- +layout: "dnsimple" +page_title: "Provider: DNSimple" +sidebar_current: "docs-dnsimple-index" +--- + +# DNSimple Provider + +The DNSimple provider is used to interact with the +resources supported by DNSimple. 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 DNSimple provider +provider "dnsimple" { + token = "${var.dnsimple_token}" + email = "${var.dnsimple_email}" +} + +# Create a record +resource "dnsimple_record" "www" { + ... +} +``` + +## Argument Reference + +The following arguments are supported: + +* `token` - (Required) The DNSimple API token +* `email` - (Required) The email associated with the token + + diff --git a/website/source/docs/providers/dnsimple/r/record.html.markdown b/website/source/docs/providers/dnsimple/r/record.html.markdown new file mode 100644 index 000000000..bf6afae09 --- /dev/null +++ b/website/source/docs/providers/dnsimple/r/record.html.markdown @@ -0,0 +1,46 @@ +--- +layout: "dnsimple" +page_title: "DNSimple: dnsimple_record" +sidebar_current: "docs-dnsimple-resource-record" +--- + +# dnsimple\_record + +Provides a DNSimple record resource. + +## Example Usage + +``` +# Add a record to the domain +resource "dnsimple_record" "foobar" { + domain = "${var.dnsimple_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 + +## 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 +* `domain_id` - The domain ID of the record +* `hostname` - The FQDN of the record + diff --git a/website/source/layouts/_footer.erb b/website/source/layouts/_footer.erb index 4baa7bccd..75290181d 100644 --- a/website/source/layouts/_footer.erb +++ b/website/source/layouts/_footer.erb @@ -7,7 +7,6 @@
  • Intro
  • Docs
  • Community
  • -
  • Demo