diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-08-12 19:34:47 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-08-12 19:34:47 -0700 |
| commit | e74dcdb8a17afb6c2b7fa5a36b304ffc16a5591f (patch) | |
| tree | e14042429ddccbdf615966ad06caa354ee89445e | |
| parent | fix script to update do-rproxy (diff) | |
| download | infra-e74dcdb8a17afb6c2b7fa5a36b304ffc16a5591f.tar.gz | |
add a script to apply DNS terraform
| -rw-r--r-- | infra/tf/scripts.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/infra/tf/scripts.nix b/infra/tf/scripts.nix index 373b77d..8e20d30 100644 --- a/infra/tf/scripts.nix +++ b/infra/tf/scripts.nix @@ -35,6 +35,13 @@ in ${pkgs.opentofu}/bin/tofu -chdir="cloudflare-dns" plan '') + (pkgs.writeShellScriptBin "tf-apply-dns" '' + set -xeuo pipefail + ${tofuSetup} + tofu_setup + ${pkgs.opentofu}/bin/tofu -chdir="cloudflare-dns" apply -auto-approve + '') + (pkgs.writeShellScriptBin "tf-plan-backups" '' set -xeuo pipefail ${tofuSetup} |
