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

allow other databases in the format 'role@db' for mongodb_user #547

Closed
wants to merge 9 commits into from
Closed

allow other databases in the format 'role@db' for mongodb_user #547

wants to merge 9 commits into from

Conversation

thde
Copy link

@thde thde commented Jul 30, 2019

Pull Request (PR) description

I added some acceptance tests for this PR: #432
which is based on #308

This Pull Request (PR) fixes the following issues

Fixes #460

@thde
Copy link
Author

thde commented Jul 31, 2019

Well if I did specify the roles correctly, it looks like as the behavior does not work as expected...

@juniorsysadmin juniorsysadmin added enhancement New feature or request tests-fail labels Aug 3, 2019
pecharmin added a commit to pecharmin/puppet-mongodb that referenced this pull request Nov 26, 2019
Adopt PR voxpupuli#308 by @sharon-tickell
to support assigning user roles to other database using syntax role@database.

With support of voxpupuli#547

mongodb_spec:
Supply explicit JSON document incl. db name to mongodb command when changing roles;
see syntax https://docs.mongodb.com/manual/reference/method/db.grantRolesToUser/
Compatibility level is mongodb >= 2.6
pecharmin added a commit to pecharmin/puppet-mongodb that referenced this pull request Nov 26, 2019
Adopt PR voxpupuli#308 by @sharon-tickell
to support assigning user roles to other database using syntax role@database.

With support of @thde in voxpupuli#547

mongodb_spec:
Supply explicit JSON document incl. db name to mongodb command when changing roles;
see syntax https://docs.mongodb.com/manual/reference/method/db.grantRolesToUser/
Compatibility level is mongodb >= 2.6
@thde
Copy link
Author

thde commented Jan 22, 2020

I close this in favor of #432

@thde thde closed this Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tests-fail
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mongodb_user provider does not support creating the user in multiple databases
3 participants