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"
|
2024-02-12 11:53:09 +01:00
|
|
|
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"
|
2024-02-12 11:53:09 +01:00
|
|
|
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
|
|
|
|
}
|