nixos-wiki-infra/targets/nixos-wiki.nixos.org/terraform.tf

31 lines
919 B
Terraform
Raw Normal View History

2023-05-10 21:05:10 +02:00
terraform {
backend "http" {
2024-02-09 11:54:32 +01:00
address = "https://gitlab.com/api/v4/projects/54760013/terraform/state/nixos-wiki2.thalheim.io"
lock_address = "https://gitlab.com/api/v4/projects/54760013/terraform/state/nixos-wiki2.thalheim.io/lock"
unlock_address = "https://gitlab.com/api/v4/projects/54760013/terraform/state/nixos-wiki2.thalheim.io/lock"
2023-05-10 21:05:10 +02:00
lock_method = "POST"
unlock_method = "DELETE"
retry_wait_min = "5"
}
}
module "wiki" {
2023-05-14 18:43:08 +02:00
source = "../../terraform/nixos-wiki"
2024-04-01 13:30:03 +02:00
domain = "wiki.nixos.org"
nixos_flake_attr = "nixos-wiki-nixos-org"
2023-05-11 00:29:15 +02:00
nixos_vars_file = "${path.module}/nixos-vars.json"
2024-02-17 17:26:38 +01:00
sops_file = abspath("${path.module}/secrets/secrets.yaml")
2023-05-14 18:34:56 +02:00
tags = {
2023-05-11 00:29:15 +02:00
Terraform = "true"
Target = "wiki.nixos.org"
2023-05-11 00:29:15 +02:00
}
2023-05-10 21:05:10 +02:00
}
2024-02-09 11:54:32 +01:00
output "ipv4_address" {
value = module.wiki.ipv4_address
}
output "ipv6_address" {
value = module.wiki.ipv6_address
}