summary refs log tree commit diff
path: root/nixos/modules/services/cluster/hadoop
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-07-02 17:57:31 +0200
committeraszlig <aszlig@nix.build>2018-07-02 18:05:33 +0200
commit6e4711727e7e7b56a7b479a5f5839a87e5b334cf (patch)
tree47c97f8a2bd42d54b6cae93215e2cbe7a702bbd3 /nixos/modules/services/cluster/hadoop
parentdcc1013f6be1298e682e883b7f4578db4d380a45 (diff)
downloadnixpkgs-6e4711727e7e7b56a7b479a5f5839a87e5b334cf.tar
nixpkgs-6e4711727e7e7b56a7b479a5f5839a87e5b334cf.tar.gz
nixpkgs-6e4711727e7e7b56a7b479a5f5839a87e5b334cf.tar.bz2
nixpkgs-6e4711727e7e7b56a7b479a5f5839a87e5b334cf.tar.lz
nixpkgs-6e4711727e7e7b56a7b479a5f5839a87e5b334cf.tar.xz
nixpkgs-6e4711727e7e7b56a7b479a5f5839a87e5b334cf.tar.zst
nixpkgs-6e4711727e7e7b56a7b479a5f5839a87e5b334cf.zip
nixos/hadoop: Replace users.extra{Users,Groups}
In fff5923686c21dd147bde62d08e9f1042deadb4f 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 (060a98e9f4ad879492e48d63e887b0b6db26299e).

Unfortunately those modules still use users.extraUsers, which has been
renamed a long time ago (14321ae2431e33f5ed81f1ee43eddd29c7e9d01d, about
three years from now), so let's actually rename it accordingly as well.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @matthewbauer, @aespinosa
Diffstat (limited to 'nixos/modules/services/cluster/hadoop')
-rw-r--r--nixos/modules/services/cluster/hadoop/default.nix6
-rw-r--r--nixos/modules/services/cluster/hadoop/hdfs.nix2
-rw-r--r--nixos/modules/services/cluster/hadoop/yarn.nix2
3 files changed, 5 insertions, 5 deletions
diff --git a/nixos/modules/services/cluster/hadoop/default.nix b/nixos/modules/services/cluster/hadoop/default.nix
index 53c13fd0603..240938f0d62 100644
--- a/nixos/modules/services/cluster/hadoop/default.nix
+++ b/nixos/modules/services/cluster/hadoop/default.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;
       };
     })
diff --git a/nixos/modules/services/cluster/hadoop/hdfs.nix b/nixos/modules/services/cluster/hadoop/hdfs.nix
index 48020e6139c..a38b6a78d3a 100644
--- a/nixos/modules/services/cluster/hadoop/hdfs.nix
+++ b/nixos/modules/services/cluster/hadoop/hdfs.nix
@@ -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;
diff --git a/nixos/modules/services/cluster/hadoop/yarn.nix b/nixos/modules/services/cluster/hadoop/yarn.nix
index ce5b04a331c..5345a2732d7 100644
--- a/nixos/modules/services/cluster/hadoop/yarn.nix
+++ b/nixos/modules/services/cluster/hadoop/yarn.nix
@@ -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;