diff options
Diffstat (limited to 'terraform')
-rw-r--r-- | terraform/dns/dn42.tf | 14 | ||||
-rw-r--r-- | terraform/dns/trygvis.tf | 7 | ||||
-rw-r--r-- | terraform/ipam6/ipam6.tf | 16 | ||||
-rw-r--r-- | terraform/lhn2pi-zigbee2mqtt/main.tf | 1 | ||||
-rw-r--r-- | terraform/lhn2pi-zigbee2mqtt/zigbee2mqtt.tf | 3 |
5 files changed, 41 insertions, 0 deletions
diff --git a/terraform/dns/dn42.tf b/terraform/dns/dn42.tf index 9f70413..7acdc5a 100644 --- a/terraform/dns/dn42.tf +++ b/terraform/dns/dn42.tf @@ -28,6 +28,13 @@ resource "linode_domain_record" "dn42-ha-kv24" { target = "fdb1:4242:3538:2005:c534:9d54:8212:1ced" } +resource "linode_domain_record" "dn42-ha-lhn2" { + domain_id = linode_domain.root.id + name = "ha-lhn2.dn42" + record_type = "AAAA" + target = "fdb1:4242:3538:2008:9c59:926f:1dc9:89db" +} + resource "linode_domain_record" "dn42-hash" { domain_id = linode_domain.root.id name = "hash.dn42" @@ -49,6 +56,13 @@ resource "linode_domain_record" "dn42-kv24ix" { target = "fdb1:4242:3538:2006::ffff" } +resource "linode_domain_record" "dn42-lhn2-z2m" { + domain_id = linode_domain.root.id + name = "lhn2-z2m.dn42" + record_type = "AAAA" + target = "fdb1:4242:3538:2008:9aed:e460:1711:7dd" +} + resource "linode_domain_record" "dn42-lhn2pi" { domain_id = linode_domain.root.id name = "lhn2pi.dn42" diff --git a/terraform/dns/trygvis.tf b/terraform/dns/trygvis.tf index 2a6752f..667ba83 100644 --- a/terraform/dns/trygvis.tf +++ b/terraform/dns/trygvis.tf @@ -165,6 +165,13 @@ resource "linode_domain_record" "kv24" { target = "trygvis.io" } +resource "linode_domain_record" "lhn2" { + domain_id = linode_domain.root.id + name = "lhn2" + record_type = "CNAME" + target = "trygvis.io" +} + # Aliases for vs.trygvis.io resource "linode_domain_record" "nextcloud" { domain_id = linode_domain.root.id diff --git a/terraform/ipam6/ipam6.tf b/terraform/ipam6/ipam6.tf index 4b7d494..74a6fe4 100644 --- a/terraform/ipam6/ipam6.tf +++ b/terraform/ipam6/ipam6.tf @@ -121,6 +121,14 @@ output "networks" { address : "fdb1:4242:3538:2008::ffff" prefix : "128" } + lhn2-z2m = { + address : "fdb1:4242:3538:2008:9aed:e460:1711:7dd" + prefix : "128" + } + ha-lhn2 = { + address : "fdb1:4242:3538:2008:9c59:926f:1dc9:89db" + prefix : "128" + } conflatorio = { address : "fdb1:4242:3538:2008:8042:32ff:fe0c:7161" prefix : "128" @@ -193,6 +201,14 @@ output "hosts" { address : "fdb1:4242:3538:2008::ffff" prefix : "128" } + lhn2-z2m = { + address : "fdb1:4242:3538:2008:9aed:e460:1711:7dd" + prefix : "128" + } + ha-lhn2 = { + address : "fdb1:4242:3538:2008:9c59:926f:1dc9:89db" + prefix : "128" + } conflatorio = { address : "fdb1:4242:3538:2008:8042:32ff:fe0c:7161" prefix : "128" diff --git a/terraform/lhn2pi-zigbee2mqtt/main.tf b/terraform/lhn2pi-zigbee2mqtt/main.tf index 009ac7d..1aefaaa 100644 --- a/terraform/lhn2pi-zigbee2mqtt/main.tf +++ b/terraform/lhn2pi-zigbee2mqtt/main.tf @@ -25,6 +25,7 @@ provider "docker" { locals { docker_image = "koenkk/zigbee2mqtt:1.42.0" + public_ip = module.ipam.hosts.lhn2pi.address } module "ipam" { diff --git a/terraform/lhn2pi-zigbee2mqtt/zigbee2mqtt.tf b/terraform/lhn2pi-zigbee2mqtt/zigbee2mqtt.tf index a77fe95..1e3e1a9 100644 --- a/terraform/lhn2pi-zigbee2mqtt/zigbee2mqtt.tf +++ b/terraform/lhn2pi-zigbee2mqtt/zigbee2mqtt.tf @@ -18,10 +18,13 @@ resource "docker_container" "zigbee2mqtt" { # privileged = true must_run = true + network_mode = "host" + ports { internal = 8080 external = 8080 protocol = "tcp" + ip = local.public_ip } volumes { |