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 [
|
config = mkMerge [
|
||||||
(mkIf (builtins.hasAttr "yarn" config.users.extraUsers ||
|
(mkIf (builtins.hasAttr "yarn" config.users.users ||
|
||||||
builtins.hasAttr "hdfs" config.users.extraUsers ) {
|
builtins.hasAttr "hdfs" config.users.users) {
|
||||||
users.extraGroups.hadoop = {
|
users.groups.hadoop = {
|
||||||
gid = config.ids.gids.hadoop;
|
gid = config.ids.gids.hadoop;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
@ -62,7 +62,7 @@ with lib;
|
|||||||
(mkIf (
|
(mkIf (
|
||||||
cfg.hdfs.namenode.enabled || cfg.hdfs.datanode.enabled
|
cfg.hdfs.namenode.enabled || cfg.hdfs.datanode.enabled
|
||||||
) {
|
) {
|
||||||
users.extraUsers.hdfs = {
|
users.users.hdfs = {
|
||||||
description = "Hadoop HDFS user";
|
description = "Hadoop HDFS user";
|
||||||
group = "hadoop";
|
group = "hadoop";
|
||||||
uid = config.ids.uids.hdfs;
|
uid = config.ids.uids.hdfs;
|
||||||
|
@ -27,7 +27,7 @@ with lib;
|
|||||||
cfg.yarn.resourcemanager.enabled || cfg.yarn.nodemanager.enabled
|
cfg.yarn.resourcemanager.enabled || cfg.yarn.nodemanager.enabled
|
||||||
) {
|
) {
|
||||||
|
|
||||||
users.extraUsers.yarn = {
|
users.users.yarn = {
|
||||||
description = "Hadoop YARN user";
|
description = "Hadoop YARN user";
|
||||||
group = "hadoop";
|
group = "hadoop";
|
||||||
uid = config.ids.uids.yarn;
|
uid = config.ids.uids.yarn;
|
||||||
|
Loading…
Reference in New Issue
Block a user