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

22 lines
383 B
Terraform
Raw Normal View History

2023-06-17 20:34:46 +00:00
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
}