chore(inventory/instances): add forward all role attributes to the service

This commit is contained in:
Johannes Kirschbauer
2025-06-03 17:38:02 +02:00
parent 582841ba05
commit 97d7c38ba7

View File

@@ -114,7 +114,9 @@ in
};
in
# instances.<instanceName>.roles.<roleName> =
{
# Remove "tags", they are resolved into "machines"
(removeAttrs role [ "tags" ])
// {
machines = lib.genAttrs resolvedMachines.machines (
machineName:
let
@@ -136,10 +138,6 @@ in
};
}
);
# Maps to settings for the role.
# In other words this sets the following path of a clan.service module:
# instances.<instanceName>.roles.<roleName>.settings
settings = role.settings;
}
) instance.roles;
in