2025-02-21 07:49:45 +00:00
|
|
|
# OpenTofu server configuration
|
|
|
|
|
|
|
|
This is an experimental configuration for my Hetzner VPS using OpenTofu and Nix.
|
|
|
|
|
|
|
|
## How to use
|
|
|
|
|
2025-02-21 08:27:04 +00:00
|
|
|
In the `terraform` directory, copy `secret.tfvars.example` to `secret.tfvars` and fill in the values.
|
2025-02-21 07:49:45 +00:00
|
|
|
|
|
|
|
To generate a token with Hetzner, go to the project and click `Security -> API Tokens`.
|
|
|
|
|
|
|
|
Run `nix develop` to access a shell where OpenTofu is accessible.
|
|
|
|
|
|
|
|
## Aliases
|
|
|
|
|
|
|
|
The following aliases in the development shell include the secrets file automatically.
|
|
|
|
|
2025-02-21 08:27:04 +00:00
|
|
|
- `tofu-plan` - run in `terraform` directory
|
|
|
|
- `tofu-apply` - run in `terraform` directory
|