mongodb
Options
Section titled “Options”services.mongodb.enable
Section titled “services.mongodb.enable”Whether to enable MongoDB process and expose utilities.
Type: boolean
Default:
falseExample:
trueDeclared by:
services.mongodb.package
Section titled “services.mongodb.package”Which MongoDB package to use.
Type: package
Default:
pkgs.mongodb-ceDeclared by:
services.mongodb.additionalArgs
Section titled “services.mongodb.additionalArgs”Additional arguments passed to mongod.
Type: list of strings concatenated with “\n”
Default:
[ "--noauth"]Example:
[ "--port" "27017" "--noauth"]Declared by:
services.mongodb.initDatabasePassword
Section titled “services.mongodb.initDatabasePassword”This used in conjunction with initDatabaseUsername, create a new user and set that user’s password. This user is created in the admin authentication database and given the role of root, which is a “superuser” role.
Type: string
Default:
""Example:
"secret"Declared by:
services.mongodb.initDatabaseUsername
Section titled “services.mongodb.initDatabaseUsername”This used in conjunction with initDatabasePassword, create a new user and set that user’s password. This user is created in the admin authentication database and given the role of root, which is a “superuser” role.
Type: string
Default:
""Example:
"mongoadmin"Declared by:
services.mongodb.replication.enable
Section titled “services.mongodb.replication.enable”Whether to enable MongoDB replication with a 1-node replica-set…
Type: boolean
Default:
falseExample:
trueDeclared by:
services.mongodb.replication.replSet
Section titled “services.mongodb.replication.replSet”Replica-set name
Type: string
Default:
"rs0"Example:
"rs0"Declared by:

