Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User management actions in users array #91

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ be available at your [MMS Settings page](https://mms.mongodb.com/settings).
An optional recipe is `mongodb::user_management` which will enable authentication in
the configuration file by default and create any users in the `node['mongodb']['users']`.
The users array expects a hash of username, password, roles, and database. Roles should be
an array of roles the user should have on the database given.
an array of roles the user should have on the database given. An optional action, `add`, `modify`
or `delete` may also be specified. If no action is specified, it will default to `add`.

By default, authentication is not required on the database. This can be overridden by setting
the `node['mongodb']['config']['auth']` attribute to true in the chef json.
Expand Down
2 changes: 1 addition & 1 deletion recipes/user_management.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
roles user['roles']
database user['database']
connection node['mongodb']
action :add
action user['action'] or :add

This comment was marked as outdated.

end
end