Skip to content

mongodb

Whether to enable MongoDB process and expose utilities.

Type: boolean

Default:

false

Example:

true

Declared by:

Which MongoDB package to use.

Type: package

Default:

pkgs.mongodb-ce

Declared by:

Additional arguments passed to mongod.

Type: list of strings concatenated with “\n”

Default:

[
"--noauth"
]

Example:

[
"--port"
"27017"
"--noauth"
]

Declared by:

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:

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:

Whether to enable MongoDB replication with a 1-node replica-set…

Type: boolean

Default:

false

Example:

true

Declared by:

Replica-set name

Type: string

Default:

"rs0"

Example:

"rs0"

Declared by: