Resource Type: mongodb_user
- Defined in:
- lib/puppet/type/mongodb_user.rb
- Providers:
-
mongodb
Overview
Manage a MongoDB user. This includes management of users password as well as privileges.
Properties
-
database
The user’s target database.
Supported values:- /^[\w-]+$/
-
ensure
(defaults to: present)
The basic property that the resource should be in.
Supported values:- present
- absent
-
password
The plaintext password of the user.
-
password_hash
The password hash of the user. Use mongodb_password() for creating hash. Only available on MongoDB 3.0 and later.
Supported values:- /^\w+$/
-
roles
(defaults to: ['dbAdmin'])
The user’s roles.
Supported values:- /^\w+$/
-
username
The name of the user.
Parameters
-
name (namevar)
The name of the resource.
-
provider
The specific backend to use for this ‘mongodb_user` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.
-
tries
(defaults to: 10)
The maximum amount of two second tries to wait MongoDB startup.
Supported values:- /^\d+$/