feat(tvl-buildkite): Add all buildkite agent users to a local group
This lets us grant permissions to them, e.g. on local folders. Change-Id: I823ac414be1cb7d6baa4f17d95003709e5911b04 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2905 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
parent
c021370213
commit
4b78875726
1 changed files with 9 additions and 0 deletions
|
@ -32,5 +32,14 @@ in {
|
||||||
hooks.post-command = "${buildkiteHooks}/bin/post-command";
|
hooks.post-command = "${buildkiteHooks}/bin/post-command";
|
||||||
};
|
};
|
||||||
}) agents);
|
}) agents);
|
||||||
|
|
||||||
|
# Set up a group for all Buildkite agent users
|
||||||
|
users = {
|
||||||
|
groups.buildkite-agents = {};
|
||||||
|
users = builtins.listToAttrs (map (n: {
|
||||||
|
name = "buildkite-agent-whitby-${toString n}";
|
||||||
|
value.extraGroups = [ "buildkite-agents" ];
|
||||||
|
}) agents);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue