init: copied modules from lawndale-infra

This commit is contained in:
2022-05-26 00:40:29 +02:00
commit 414feb48ee
39 changed files with 1435 additions and 0 deletions

13
lawndale-vm-ipam/dns.tf Normal file
View File

@@ -0,0 +1,13 @@
resource "dns_a_record_set" "this" {
zone = "lawndale."
name = "${var.name}.${var.interface}"
addresses = [local.ip_address]
ttl = var.ttl
}
resource "dns_ptr_record" "this" {
zone = "168.192.in-addr.arpa."
name = local.ptr_name
ptr = "${var.name}.${var.interface}.lawndale."
ttl = var.ttl
}