forked from Fediversity/Fediversity
tf command
This commit is contained in:
parent
01f79db0b2
commit
857f179dd8
1 changed files with 14 additions and 2 deletions
|
@ -18,7 +18,6 @@
|
||||||
nodes.deployer =
|
nodes.deployer =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
# FIXME: sad times
|
# FIXME: sad times
|
||||||
system.extraDependencies = with pkgs; [
|
system.extraDependencies = with pkgs; [
|
||||||
jq
|
jq
|
||||||
|
@ -40,8 +39,21 @@
|
||||||
hello.fail("hello 1>&2")
|
hello.fail("hello 1>&2")
|
||||||
cowsay.fail("cowsay 1>&2")
|
cowsay.fail("cowsay 1>&2")
|
||||||
|
|
||||||
|
# SETTINGS.BIN_PATH
|
||||||
|
# CONFIG
|
||||||
|
env = {
|
||||||
|
"PATH": settings.bin_path,
|
||||||
|
# "TF_LOG": "info",
|
||||||
|
} | {
|
||||||
|
# pass in form info to our deployment
|
||||||
|
# FIXME: ensure sensitive info is protected
|
||||||
|
f"TF_VAR_{k}": v if isinstance(v, str) else json.dumps(v) for k, v in json.loads(config.model_dump_json()).items()
|
||||||
|
}
|
||||||
|
|
||||||
|
# USE ENV
|
||||||
|
# SETTINGS.REPO_DIR
|
||||||
with subtest("Run the deployment"):
|
with subtest("Run the deployment"):
|
||||||
deployer.succeed("nixops4 apply check-deployment-basic --show-trace --no-interactive 1>&2")
|
deployer.succeed("cd ${settings.repo_dir}/infra/operator && tofu apply --auto-approve -lock=false -parallelism=1")
|
||||||
|
|
||||||
with subtest("Check the deployment"):
|
with subtest("Check the deployment"):
|
||||||
hello.succeed("hello 1>&2")
|
hello.succeed("hello 1>&2")
|
||||||
|
|
Loading…
Add table
Reference in a new issue