Skip to content

Commit bced00b

Browse files
committed
Add example
Signed-off-by: Georg Pfuetzenreuter <[email protected]>
1 parent 68066ed commit bced00b

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

examples/zones/example_com.tf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module "example_com" {
2+
source = "pan-net/terraform-provider-powerdns"
3+
name = [
4+
"example.com."
5+
]
6+
7+
records = [
8+
{
9+
type = "SOA",
10+
ttl = 300,
11+
records = [
12+
"ns1.example.com. hostmaster.example.com. 0 10800 3600 604800 3600"
13+
]
14+
},
15+
{
16+
name = "www",
17+
type = "AAAA",
18+
ttl = 300,
19+
records = [
20+
"::1"
21+
]
22+
}
23+
]
24+
}
25+

examples/zones/main.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
terraform {
2+
required_providers {
3+
powerdns = {
4+
source = "pan-net/powerdns"
5+
#version = "1.5.0"
6+
}
7+
}
8+
}
9+
10+
provider "powerdns" {
11+
api_key = var.pdns_api_key
12+
server_url = var.pdns_server_url
13+
}

examples/zones/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
variable "pdns_api_key" {
2+
type = string
3+
}
4+
variable "pdns_server_url" {
5+
type = string
6+
}

0 commit comments

Comments
 (0)