nixos/hadoop: replace enable = mkoption bools with mkEnableOption
This commit is contained in:
parent
c3d147f507
commit
42e14ff69f
@ -17,13 +17,7 @@ in
|
|||||||
{
|
{
|
||||||
options.services.hadoop.hdfs = {
|
options.services.hadoop.hdfs = {
|
||||||
namenode = {
|
namenode = {
|
||||||
enable = mkOption {
|
enable = mkEnableOption "Whether to run the HDFS NameNode";
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = ''
|
|
||||||
Whether to run the HDFS NameNode
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
formatOnInit = mkOption {
|
formatOnInit = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
@ -43,13 +37,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
datanode = {
|
datanode = {
|
||||||
enable = mkOption {
|
enable = mkEnableOption "Whether to run the HDFS DataNode";
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = ''
|
|
||||||
Whether to run the HDFS DataNode
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
inherit restartIfChanged;
|
inherit restartIfChanged;
|
||||||
openFirewall = mkOption {
|
openFirewall = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
@ -60,13 +48,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
journalnode = {
|
journalnode = {
|
||||||
enable = mkOption {
|
enable = mkEnableOption "Whether to run the HDFS JournalNode";
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = ''
|
|
||||||
Whether to run the HDFS JournalNode
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
inherit restartIfChanged;
|
inherit restartIfChanged;
|
||||||
openFirewall = mkOption {
|
openFirewall = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
@ -77,23 +59,11 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
zkfc = {
|
zkfc = {
|
||||||
enable = mkOption {
|
enable = mkEnableOption "Whether to run the HDFS ZooKeeper failover controller";
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = ''
|
|
||||||
Whether to run the HDFS ZooKeeper failover controller
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
inherit restartIfChanged;
|
inherit restartIfChanged;
|
||||||
};
|
};
|
||||||
httpfs = {
|
httpfs = {
|
||||||
enable = mkOption {
|
enable = mkEnableOption "Whether to run the HDFS HTTPfs server";
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = ''
|
|
||||||
Whether to run the HDFS httpfs failover controller
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
tempPath = mkOption {
|
tempPath = mkOption {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
default = "/tmp/hadoop/httpfs";
|
default = "/tmp/hadoop/httpfs";
|
||||||
|
@ -17,13 +17,7 @@ in
|
|||||||
{
|
{
|
||||||
options.services.hadoop.yarn = {
|
options.services.hadoop.yarn = {
|
||||||
resourcemanager = {
|
resourcemanager = {
|
||||||
enable = mkOption {
|
enable = mkEnableOption "Whether to run the Hadoop YARN ResourceManager";
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = ''
|
|
||||||
Whether to run the Hadoop YARN ResourceManager
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
inherit restartIfChanged;
|
inherit restartIfChanged;
|
||||||
openFirewall = mkOption {
|
openFirewall = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
@ -34,13 +28,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
nodemanager = {
|
nodemanager = {
|
||||||
enable = mkOption {
|
enable = mkEnableOption "Whether to run the Hadoop YARN NodeManager";
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = ''
|
|
||||||
Whether to run the Hadoop YARN NodeManager
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
inherit restartIfChanged;
|
inherit restartIfChanged;
|
||||||
addBinBash = mkOption {
|
addBinBash = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
Loading…
Reference in New Issue
Block a user