diff options
Diffstat (limited to 'terraform/hash-docker/main.tf')
-rw-r--r-- | terraform/hash-docker/main.tf | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/terraform/hash-docker/main.tf b/terraform/hash-docker/main.tf new file mode 100644 index 0000000..ba2c79f --- /dev/null +++ b/terraform/hash-docker/main.tf @@ -0,0 +1,34 @@ +terraform { + required_providers { + docker = { + source = "kreuzwerker/docker" + version = "2.24.0" + } + sops = { + source = "lokkersp/sops" + version = "0.6.10" + } + } +} + +locals { + host = "hash.trygvis.io" + public_ip = "138.201.33.16" + + hs = module.ipam6.hosts + ns = module.ipam6.networks + dn42_range = local.ns.hash_docker_dn42.range +} + +provider "docker" { + host = "ssh://${local.host}" +} + +data "sops_file_entry" "linode_token" { + source_file = "../../sops.yml" + data_key = "linode_token" +} + +module "ipam6" { + source = "../ipam6" +} |