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
add a data model deployment test by VM using opentofu. builds upon #505. Reviewed-on: #506
16 lines
410 B
Nix
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
|
|
''
|