nixos/hadoop: Replace users.extra{Users,Groups}

In fff5923686 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
wip/yesman
aszlig 6 years ago
parent dcc1013f6b
commit 6e4711727e
No known key found for this signature in database
GPG Key ID: 684089CE67EBB691
  1. 6
      nixos/modules/services/cluster/hadoop/default.nix
  2. 2
      nixos/modules/services/cluster/hadoop/hdfs.nix
  3. 2
      nixos/modules/services/cluster/hadoop/yarn.nix

@ -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…
Cancel
Save