diff --git a/website/source/assets/stylesheets/_docs.scss b/website/source/assets/stylesheets/_docs.scss index 348f84273..9737e0f53 100755 --- a/website/source/assets/stylesheets/_docs.scss +++ b/website/source/assets/stylesheets/_docs.scss @@ -26,6 +26,7 @@ body.layout-mysql, body.layout-openstack, body.layout-packet, body.layout-postgresql, +body.layout-powerdns, body.layout-rundeck, body.layout-statuscake, body.layout-template, diff --git a/website/source/docs/providers/powerdns/index.html.markdown b/website/source/docs/providers/powerdns/index.html.markdown new file mode 100644 index 000000000..172a7ea20 --- /dev/null +++ b/website/source/docs/providers/powerdns/index.html.markdown @@ -0,0 +1,36 @@ +--- +layout: "powerdns" +page_title: "Provider: PowerDNS" +sidebar_current: "docs-powerdns-index" +description: |- + The PowerDNS provider is used manipulate DNS records supported by PowerDNS server. The provider needs to be configured with the proper credentials before it can be used. +--- + +# PowerDNS Provider + +The PowerDNS provider is used manipulate DNS records supported by PowerDNS server. 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 PowerDNS provider +provider "powerdns" { + api_key = "${var.pdns_api_key}" + server_url = "${var.pdns_server_url}" +} + +# Create a record +resource "powerdns_record" "www" { + ... +} +``` + +## Argument Reference + +The following arguments are supported: + +* `api_key` - (Required) The PowerDNS API key. This can also be specified with `PDNS_API_KEY` environment variable. +* `server_url` - (Required) The address of PowerDNS server. This can also be specified with `PDNS_SERVER_URL` environment variable. diff --git a/website/source/docs/providers/powerdns/r/record.html.markdown b/website/source/docs/providers/powerdns/r/record.html.markdown new file mode 100644 index 000000000..785c0cd48 --- /dev/null +++ b/website/source/docs/providers/powerdns/r/record.html.markdown @@ -0,0 +1,35 @@ +--- +layout: "powerdns" +page_title: "PowerDNS: powerdns_record" +sidebar_current: "docs-powerdns-resource-record" +description: |- + Provides a PowerDNS record resource. +--- + +# powerdns\_record + +Provides a PowerDNS record resource. + +## Example Usage + +``` +# Add a record to the zone +resource "powerdns_record" "foobar" { + zone = "example.com" + name = "www.example.com" + type = "A" + ttl = 300 + records = ["192.168.0.11"] +} +``` + +## Argument Reference + +The following arguments are supported: + +* `zone` - (Required) The name of zone to contain this record. +* `name` - (Required) The name of the record. +* `type` - (Required) The record type. +* `ttl` - (Required) The TTL of the record. +* `records` - (Required) A string list of records. + diff --git a/website/source/layouts/docs.erb b/website/source/layouts/docs.erb index 7a386d90a..39b08058a 100644 --- a/website/source/layouts/docs.erb +++ b/website/source/layouts/docs.erb @@ -201,6 +201,10 @@ PostgreSQL + > + PowerDNS + + > Rundeck diff --git a/website/source/layouts/powerdns.erb b/website/source/layouts/powerdns.erb new file mode 100644 index 000000000..e76f26ba8 --- /dev/null +++ b/website/source/layouts/powerdns.erb @@ -0,0 +1,26 @@ +<% wrap_layout :inner do %> + <% content_for :sidebar do %> + + <% end %> + + <%= yield %> + <% end %>