rework pocket-id to be more generic

This commit is contained in:
2025-07-30 10:21:32 +07:00
parent 49ed4d78c3
commit dc19d20d73
14 changed files with 169 additions and 58 deletions

View File

@@ -0,0 +1,34 @@
{ ... }:
{
name = "service-pocket-id";
clan = {
directory = ./.;
inventory = {
machines.server = { };
instances = {
pocket-id-test = {
module.name = "@clan/pocket-id";
module.input = "self";
roles.default.machines."server" = { };
};
};
};
};
nodes = {
server = {
services.pocket-id = { };
};
};
testScript = ''
start_all()
server.wait_for_unit("pocket-id")
# Check that garage is running
server.succeed("systemctl status pocket-id")
'';
}