feat(meta): add disallowApplyAll options

unify meta access for machinesFile

update release note and config name
This commit is contained in:
NeverBehave 2022-06-18 00:07:16 -07:00 committed by Zhaofeng Li
parent 1b3c272b58
commit dd7a2924ca
10 changed files with 111 additions and 24 deletions

View file

@ -0,0 +1,19 @@
{ pkgs ? import ../nixpkgs.nix }:
let
tools = pkgs.callPackage ../tools.nix {
targets = [ "alpha" ];
};
in tools.makeTest {
name = "colmena-allow-apply-all";
bundle = ./.;
testScript = ''
logs = deployer.fail("cd /tmp/bundle && run-copy-stderr ${tools.colmenaExec} apply")
assert "no filter supplied" in logs
deployer.succeed("cd /tmp/bundle && run-copy-stderr ${tools.colmenaExec} apply --on @target")
'';
}

View file

@ -0,0 +1,14 @@
let
tools = import ./tools.nix {
insideVm = true;
targets = ["alpha"];
};
in {
meta = {
nixpkgs = tools.pkgs;
allowApplyAll = false;
};
deployer = tools.getStandaloneConfigFor "deployer";
alpha = tools.getStandaloneConfigFor "alpha";
}

View file

@ -8,6 +8,8 @@
flakes-streaming = import ./flakes { evaluator = "streaming"; };
parallel = import ./parallel {};
allow-apply-all = import ./allow-apply-all {};
apply-stable = let
test = import ./apply { pkgs = import ./nixpkgs-stable.nix; };
in test.override (old: {