feat(ops/terraform): add module for deploying NixOS system closures

This module makes it fairly easy to deploy NixOS system closures using
Terraform, while properly separating the evaluation of a
derivation (to determine whether a deploy is needed) from the building
and copying of the closure itself.

This has been on my stack for a while. It was originally developed for
Resoptima, who agreed to open-sourcing it in depot back when we
completed our work with them. Their contribution has been acknowledged
in the README.

Co-Authored-By: Florian Klink <flokli@flokli.de>
Change-Id: Ica4c170658cd25f1fb7072c9a45735fcc4351474
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7950
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2023-01-29 19:44:23 +03:00 committed by tazjin
parent 0b64577702
commit dbca46d052
5 changed files with 187 additions and 0 deletions

5
ops/terraform/README.md Normal file
View file

@ -0,0 +1,5 @@
//ops/terraform
===============
This folder contains Terraform modules and other related
Terraform-tooling by TVL.