services: add role settings with explicit warning

This commit is contained in:
Johannes Kirschbauer
2025-10-27 13:31:44 +01:00
parent 3be5237cf6
commit 33115f76b7
3 changed files with 36 additions and 3 deletions

View File

@@ -137,6 +137,7 @@ in
settings = { };
};
};
settings = { };
};
peer = {
machines = {
@@ -146,6 +147,9 @@ in
};
};
};
settings = {
timeout = "foo-peer";
};
};
};
settings = {

View File

@@ -102,18 +102,23 @@ in
specificRoleSettings =
res.importedModulesEvaluated.self-A.result.allMachines.jon.passthru.instances.instance_foo.roles.peer;
};
expected = rec {
expected = {
hasMachineSettings = true;
hasRoleSettings = false;
hasRoleSettings = true;
specificMachineSettings = {
timeout = "foo-peer-jon";
};
specificRoleSettings = {
machines = {
jon = {
settings = specificMachineSettings;
settings = {
timeout = "foo-peer-jon";
};
};
};
settings = {
timeout = "foo-peer";
};
};
};
};