flocon/infra
2025-11-21 23:25:29 +01:00
..
templates clan: add wireguard 2025-11-21 23:25:29 +01:00
.gitignore create tf infra for crocus and dns 2025-02-06 11:00:37 +01:00
.terraform.lock.hcl add dns config for verbena 2025-09-22 16:09:13 +02:00
crocus.tf use a template for turifer.dev zone file 2025-07-24 19:05:20 +02:00
dns.tf fix tf typo 2025-10-29 12:53:45 +01:00
main.tf add dns config for verbena 2025-09-22 16:09:13 +02:00
outputs.json verbena: configure IPv6 from tofu outputs 2025-11-21 23:24:22 +01:00
providers.tf setup dns for turifer.dev mail 2025-07-17 23:52:12 +02:00
README.md verbena: configure IPv6 from tofu outputs 2025-11-21 23:24:22 +01:00
variables.tf setup dns for turifer.dev mail 2025-07-17 23:52:12 +02:00
verbena.tf verbena: configure IPv6 from tofu outputs 2025-11-21 23:24:22 +01:00

Infra

Secrets

Provide secrets when asked by the command-line, or save them in a terraform.tfvars file:

gandi_token = XXX
hcloud_token = YYY

Importing

To import already existent resources, use the import command:

tofu import hcloud_server.crocus_server XXX
tofu import hcloud_firewall.hcloud_firewall YYY

For Hetzner Cloud, the resource IDs can be found in the URL of the admin console.

Outputs

The nix configuration reads some values from the outputs.json file. When modifying these, the file should be regenerated with tofu output -json > outputs.json.