This repository has been archived on 2023-12-26. You can view files and clone it, but cannot push or open issues or pull requests.
hermes/terraform/dns/main.tf
Pim Kunis 49dd20ff61 fix wrong interface name in dnsmasq
change location of powernds api key
2023-10-26 20:24:03 +02:00

21 lines
405 B
HCL

terraform {
backend "pg" {
schema_name = "hermes_dns"
}
required_providers {
powerdns = {
source = "pan-net/powerdns"
version = "1.5.0"
}
}
}
data "external" "secrets" {
program = ["cat", pathexpand("~/.config/home/powerdns-api-key.json")]
}
provider "powerdns" {
server_url = "http://hermes.dmz:3000"
api_key = data.external.secrets.result.powerdns_api_key
}