init: copy from lawndale-infra

This commit is contained in:
2022-05-27 02:51:52 +02:00
commit 6a60d271bf
18 changed files with 1126 additions and 0 deletions

33
variables.tf Normal file
View File

@@ -0,0 +1,33 @@
variable "lawndale_dns_host" {
type = string
description = "Address to reach lawndale internal DNS server"
default = "lawndale-hyper"
}
variable "lawndale_dns_port" {
type = number
description = "Port where the lawndale internal DNS server listens on"
}
variable "lawndale_dns_transport" {
type = string
description = "Port where the lawndale internal DNS server listens on"
default = "udp"
validation {
condition = can(regex("(udp|tcp)", var.lawndale_dns_transport))
error_message = "Must be either tcp or udp!"
}
}
variable "lawndale_dns_key_secret" {
type = string
sensitive = true
description = "DNSSEC key to use sigining the NSUPDATE queries for Lawndale"
}
variable "lawndale_dns_key_algorithm" {
type = string
description = "DNSSEC key to use sigining the NSUPDATE queries for Lawndale"
default = "hmac-sha256"
}