Go to file
Kiara Grouwstra 1177ad0bfa support nomad jobs from ./jobs/**/*.nomad.hcl files 2024-01-24 15:51:43 +01:00
jobs support nomad jobs from ./jobs/**/*.nomad.hcl files 2024-01-24 15:51:43 +01:00
lib support nomad jobs from ./jobs/**/*.nomad.hcl files 2024-01-24 15:51:43 +01:00
ssh-keys configure ssh keys 2024-01-15 22:07:10 +01:00
.auto.tfvars.enc.yaml secrets: tf provider sops -> tfvars 2024-01-20 20:45:19 +01:00
.envrc just 2024-01-24 00:14:39 +01:00
.gitignore secrets: tf provider sops -> tfvars 2024-01-20 20:45:19 +01:00
.sops.yaml secrets: tf provider sops -> tfvars 2024-01-20 20:45:19 +01:00
.terraform.lock.hcl add local nomad 2024-01-23 21:15:50 +01:00
.terraformignore secrets: tf provider sops -> tfvars 2024-01-20 20:45:19 +01:00
.woodpecker.yml fix ci to use nix 2024-01-17 02:37:31 +01:00
README.md just 2024-01-24 00:14:39 +01:00
config.nix support nomad jobs from ./jobs/**/*.nomad.hcl files 2024-01-24 15:51:43 +01:00
flake.lock add local nomad 2024-01-23 21:15:50 +01:00
flake.nix just 2024-01-24 00:14:39 +01:00
justfile just default 2024-01-24 10:20:13 +01:00
nomad.nix support nomad jobs from ./jobs/**/*.nomad.hcl files 2024-01-24 15:51:43 +01:00
treefmt.toml poc: terranix 2024-01-13 16:31:46 +01:00

README.md

tofu

Contains OpenTofu code used to manage our infrastructure, Nix'ified for Terranix.

Prerequisites

Usage

Development shell

Before issuing any other commands, enter the development environment (if not using direnv):

nix develop -c $SHELL

Commands

just -l

Handling credentials

Secrets

  • if you want to reset secrets:

    • generate keypair: just keygen
    • list it in sops config file .sops.yaml
  • key setup: set environment variable SOPS_AGE_KEY_FILE or SOPS_AGE_KEY so sops can locate the secret key to an age key pair that has its public key listed in .sops.yaml, e.g. (listed in .envrc):

    export SOPS_AGE_KEY_FILE=./keys.txt
    
  • setting Terraform Cloud credentials, either by:

    • decode (as per above) to reuse the shared session
    • log in to the Terraform Cloud backend: just login

Configuring

In .auto.tfvars.json override any OpenTofu variables, e.g.:

hcloud_location = "nbg1"

HCL to Nix