data "external" "secrets" {
program = ["cat", pathexpand("~/.tfvars.json")]
}
provider "powerdns" {
server_url = "http://192.168.30.7:3000"
api_key = data.external.secrets.result.powerdns_api_key
resource "powerdns_record" "kms_geokunis2_nl_a" {
zone = "geokunis2.nl."
name = "kms.geokunis2.nl."
type = "A"
records = ["84.245.14.149"]
ttl = 60
resource "powerdns_record" "files_geokunis2_nl_a" {
name = "files.geokunis2.nl."
resource "powerdns_record" "files_geokunis2_nl_aaaa" {
type = "AAAA"
records = ["2a02:58:19a:f730:b62e:99ff:fe77:1bda"]
resource "powerdns_record" "cyberchef_geokunis2_nl_a" {
name = "cyberchef.geokunis2.nl."
resource "powerdns_record" "cyberchef_geokunis2_nl_aaaa" {
records = ["2a02:58:19a:f730:c8fe:c0ff:feff:ee03"]
resource "powerdns_record" "inbucket_geokunis2_nl_a" {
name = "inbucket.geokunis2.nl."