nixos/redis: Type all options
redis: switch back to mkOption
This commit is contained in:
parent
b3d1377084
commit
9786adf23b
@ -133,12 +133,29 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
slaveOf = mkOption {
|
slaveOf = mkOption {
|
||||||
default = null; # { ip, port }
|
type = with types; nullOr (submodule ({ ... }: {
|
||||||
description = "An attribute set with two attributes: ip and port to which this redis instance acts as a slave.";
|
options = {
|
||||||
|
ip = mkOption {
|
||||||
|
type = str;
|
||||||
|
description = "IP of the Redis master";
|
||||||
|
example = "192.168.1.100";
|
||||||
|
};
|
||||||
|
|
||||||
|
port = mkOption {
|
||||||
|
type = port;
|
||||||
|
description = "port of the Redis master";
|
||||||
|
default = 6379;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}));
|
||||||
|
|
||||||
|
default = null;
|
||||||
|
description = "IP and port to which this redis instance acts as a slave.";
|
||||||
example = { ip = "192.168.1.100"; port = 6379; };
|
example = { ip = "192.168.1.100"; port = 6379; };
|
||||||
};
|
};
|
||||||
|
|
||||||
masterAuth = mkOption {
|
masterAuth = mkOption {
|
||||||
|
type = types.str;
|
||||||
default = null;
|
default = null;
|
||||||
description = ''If the master is password protected (using the requirePass configuration)
|
description = ''If the master is password protected (using the requirePass configuration)
|
||||||
it is possible to tell the slave to authenticate before starting the replication synchronization
|
it is possible to tell the slave to authenticate before starting the replication synchronization
|
||||||
|
Loading…
x
Reference in New Issue
Block a user