nixos/hadoop: Replace users.extra{Users,Groups}
Infff5923686
all occurences of users.extraUsers and users.extraGroups have been changed tree-wide to users.users and users.group. In the meantime the hadoop modules were introduced via #41381 (060a98e9f4
). Unfortunately those modules still use users.extraUsers, which has been renamed a long time ago (14321ae243
, about three years from now), so let's actually rename it accordingly as well. Signed-off-by: aszlig <aszlig@nix.build> Cc: @matthewbauer, @aespinosa
This commit is contained in:
parent
dcc1013f6b
commit
6e4711727e
@ -52,9 +52,9 @@ with lib;
|
||||
|
||||
|
||||
config = mkMerge [
|
||||
(mkIf (builtins.hasAttr "yarn" config.users.extraUsers ||
|
||||
builtins.hasAttr "hdfs" config.users.extraUsers ) {
|
||||
users.extraGroups.hadoop = {
|
||||
(mkIf (builtins.hasAttr "yarn" config.users.users ||
|
||||
builtins.hasAttr "hdfs" config.users.users) {
|
||||
users.groups.hadoop = {
|
||||
gid = config.ids.gids.hadoop;
|
||||
};
|
||||
})
|
||||
|
@ -62,7 +62,7 @@ with lib;
|
||||
(mkIf (
|
||||
cfg.hdfs.namenode.enabled || cfg.hdfs.datanode.enabled
|
||||
) {
|
||||
users.extraUsers.hdfs = {
|
||||
users.users.hdfs = {
|
||||
description = "Hadoop HDFS user";
|
||||
group = "hadoop";
|
||||
uid = config.ids.uids.hdfs;
|
||||
|
@ -27,7 +27,7 @@ with lib;
|
||||
cfg.yarn.resourcemanager.enabled || cfg.yarn.nodemanager.enabled
|
||||
) {
|
||||
|
||||
users.extraUsers.yarn = {
|
||||
users.users.yarn = {
|
||||
description = "Hadoop YARN user";
|
||||
group = "hadoop";
|
||||
uid = config.ids.uids.yarn;
|
||||
|
Loading…
Reference in New Issue
Block a user