22 lines
383 B
Terraform
22 lines
383 B
Terraform
|
terraform {
|
||
|
backend "pg" {
|
||
|
schema_name = "hermes_dns"
|
||
|
}
|
||
|
|
||
|
required_providers {
|
||
|
powerdns = {
|
||
|
source = "pan-net/powerdns"
|
||
|
version = "1.5.0"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
data "external" "secrets" {
|
||
|
program = ["cat", pathexpand("~/.tfvars.json")]
|
||
|
}
|
||
|
|
||
|
provider "powerdns" {
|
||
|
server_url = "http://hermes.dmz:3000"
|
||
|
api_key = data.external.secrets.result.powerdns_api_key
|
||
|
}
|