summary refs log tree commit diff
path: root/nixos/modules/services/cluster/hadoop/yarn.nix
diff options
context:
space:
mode:
authorillustris <rharikrishnan95@gmail.com>2021-11-02 21:46:48 +0530
committerillustris <rharikrishnan95@gmail.com>2021-11-03 22:44:25 +0530
commitc3d147f507e81455ae467f8aa589972af3449f77 (patch)
tree8ed649563a0a9352067b0a3eab6fcd4e6b5c95d5 /nixos/modules/services/cluster/hadoop/yarn.nix
parent9ca4363191f05147d0bd23ffb61838d9c1ee890e (diff)
downloadnixpkgs-c3d147f507e81455ae467f8aa589972af3449f77.tar
nixpkgs-c3d147f507e81455ae467f8aa589972af3449f77.tar.gz
nixpkgs-c3d147f507e81455ae467f8aa589972af3449f77.tar.bz2
nixpkgs-c3d147f507e81455ae467f8aa589972af3449f77.tar.lz
nixpkgs-c3d147f507e81455ae467f8aa589972af3449f77.tar.xz
nixpkgs-c3d147f507e81455ae467f8aa589972af3449f77.tar.zst
nixpkgs-c3d147f507e81455ae467f8aa589972af3449f77.zip
nixos/hadoop: replace "enabled" options with "enable" options
The module has been using "enabled" in place of enable since init ( 0c10b2baa6bf61c8ddaed7cdb6c2f2dbaab42662 )
Diffstat (limited to 'nixos/modules/services/cluster/hadoop/yarn.nix')
-rw-r--r--nixos/modules/services/cluster/hadoop/yarn.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/modules/services/cluster/hadoop/yarn.nix b/nixos/modules/services/cluster/hadoop/yarn.nix
index 3d27ad8b109..b6d4dbe25c0 100644
--- a/nixos/modules/services/cluster/hadoop/yarn.nix
+++ b/nixos/modules/services/cluster/hadoop/yarn.nix
@@ -17,7 +17,7 @@ in
 {
   options.services.hadoop.yarn = {
     resourcemanager = {
-      enabled = mkOption {
+      enable = mkOption {
         type = types.bool;
         default = false;
         description = ''
@@ -34,7 +34,7 @@ in
       };
     };
     nodemanager = {
-      enabled = mkOption {
+      enable = mkOption {
         type = types.bool;
         default = false;
         description = ''
@@ -62,7 +62,7 @@ in
 
   config = mkMerge [
     (mkIf (
-        cfg.yarn.resourcemanager.enabled || cfg.yarn.nodemanager.enabled
+        cfg.yarn.resourcemanager.enable || cfg.yarn.nodemanager.enable
     ) {
 
       users.users.yarn = {
@@ -72,7 +72,7 @@ in
       };
     })
 
-    (mkIf cfg.yarn.resourcemanager.enabled {
+    (mkIf cfg.yarn.resourcemanager.enable {
       systemd.services.yarn-resourcemanager = {
         description = "Hadoop YARN ResourceManager";
         wantedBy = [ "multi-user.target" ];
@@ -95,7 +95,7 @@ in
       ]);
     })
 
-    (mkIf cfg.yarn.nodemanager.enabled {
+    (mkIf cfg.yarn.nodemanager.enable {
       # Needed because yarn hardcodes /bin/bash in container start scripts
       # These scripts can't be patched, they are generated at runtime
       systemd.tmpfiles.rules = [