Fediversity/deployment/run/tf-single-host/setup.nix
Kiara Grouwstra 0f7433abde
Some checks are pending
deploy-infra / deploy (push) Waiting to run
/ check-pre-commit (push) Waiting to run
/ check-data-model (push) Waiting to run
/ check-mastodon (push) Waiting to run
/ check-peertube (push) Waiting to run
/ check-panel (push) Waiting to run
/ check-proxmox-basic (push) Waiting to run
/ check-deployment-basic (push) Waiting to run
/ check-deployment-cli (push) Waiting to run
/ check-deployment-panel (push) Waiting to run
/ check-deployment-model (push) Waiting to run
/ check-deployment-model-ssh (push) Waiting to run
/ check-deployment-model-nixops4 (push) Waiting to run
/ check-deployment-model-tf (push) Waiting to run
/ check-resources (push) Waiting to run
data model: add TF test (#506)
add a data model deployment test by VM using opentofu.
builds upon #505.

Reviewed-on: #506
2025-09-03 15:14:40 +02:00

16 lines
410 B
Nix

{
pkgs,
lib,
sources,
}:
pkgs.writeScriptBin "setup" ''
set -xe
# calculated pins
echo '${lib.strings.toJSON sources}' > ./.npins.json
# generate TF lock for nix's TF providers
rm -rf .terraform/
rm -f .terraform.lock.hcl
# suppress warning on architecture-specific generated lock file:
# `Warning: Incomplete lock file information for providers`.
tofu init -input=false 1>/dev/null
''