aboutsummaryrefslogtreecommitdiff
path: root/terraform/conflatorio-docker/main.tf
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2024-09-24 21:30:22 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2024-09-24 21:30:22 +0200
commit48b0ac84061a2c73d08726ccabf4dd60c506aab3 (patch)
tree44c6d4fc7750db0aec3ec2e3457b0954c9e6b9fc /terraform/conflatorio-docker/main.tf
parent503ac9cad8bc348a31f23d2a721118eb1ce4653d (diff)
downloadinfra-48b0ac84061a2c73d08726ccabf4dd60c506aab3.tar.gz
infra-48b0ac84061a2c73d08726ccabf4dd60c506aab3.tar.bz2
infra-48b0ac84061a2c73d08726ccabf4dd60c506aab3.tar.xz
infra-48b0ac84061a2c73d08726ccabf4dd60c506aab3.zip
ipam-generate-tf
Diffstat (limited to 'terraform/conflatorio-docker/main.tf')
-rw-r--r--terraform/conflatorio-docker/main.tf16
1 files changed, 9 insertions, 7 deletions
diff --git a/terraform/conflatorio-docker/main.tf b/terraform/conflatorio-docker/main.tf
index e7b11ad..ad4e6fd 100644
--- a/terraform/conflatorio-docker/main.tf
+++ b/terraform/conflatorio-docker/main.tf
@@ -23,13 +23,15 @@ data "sops_file_entry" "linode_token" {
}
locals {
- public_ip = "fdb1:4242:3538:2001::ffff"
- network_addr = "fdb1:4242:3538:2001:1001::"
- network_range = 112
- private_network_addr = "fdb1:4242:3538:2001:1002::"
- private_network_range = 112
+ hs = module.ipam6.hosts
+ ns = module.ipam6.networks
+ public_ip = local.hs.conflatorio-ix.address
+ network_addr = local.ns.conflatorio_docker.address
+ network_range = local.ns.conflatorio_docker.prefix
+ private_network_addr = local.ns.conflatorio_docker_private.address
+ private_network_range = local.ns.conflatorio_docker_private.range
}
-output "foo" {
- value = "foo!"
+module "ipam6" {
+ source = "../ipam6"
}