flocon/infra
2026-01-19 22:38:28 +01:00
..
.gitignore create tf infra for crocus and dns 2025-02-06 11:00:37 +01:00
.terraform.lock.hcl migrate infra to terranix 2026-01-19 22:38:28 +01:00
base.nix migrate infra to terranix 2026-01-19 22:38:28 +01:00
dns.nix migrate infra to terranix 2026-01-19 22:38:28 +01:00
flake-module.nix migrate infra to terranix 2026-01-19 22:38:28 +01:00
lib.nix migrate infra to terranix 2026-01-19 22:38:28 +01:00
mail.nix migrate infra to terranix 2026-01-19 22:38:28 +01:00
outputs.json infra: add flake module and crocus exports 2025-11-24 17:12:29 +01:00
radicle.nix migrate infra to terranix 2026-01-19 22:38:28 +01:00
README.md verbena: configure IPv6 from tofu outputs 2025-11-21 23:24:22 +01:00
web.nix migrate infra to terranix 2026-01-19 22:38:28 +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.