-
-
Notifications
You must be signed in to change notification settings - Fork 451
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
support for pure yaml in mongodb.cfg #587
base: master
Are you sure you want to change the base?
support for pure yaml in mongodb.cfg #587
Conversation
3e64def
to
bb41b60
Compare
Dear @MaxFedotov, thanks for the PR! This is Vox Pupuli Tasks, your friendly Vox Pupuli Github Bot. I noticed that your pull request has CI failures. Can you please have a look at the failing CI jobs? |
Please note this is still not fixed and the commit it issue 587 just attempts to handle the config file being in yaml. To clarify if you have auth enabled and have defined an admin user and password when you run puppet the following error occurs...
You have to disable auth and run puppet which is then able to create the admin user / db...
And then you can finally re-enable authentication. There is clearly a race condition here which needs to be handled. |
@whiphubley |
Thanks @stevenpost I'll take a look at this...tho probs after Easter now. But to get this working would be a big win so thanks. |
The 'race condition' is actually a dependency issue. Anyhow, the fix got merged into master. An updated version of this PR is now part of #723 |
Yes this is the last issue we really have with this module...so I look forward to testing it next week. Thanks again for all your work on this. |
Pull Request (PR) description
Support for pure yaml in /etc/mongodb.cfg.
Right now only records like
net.bindIp
are supported, and if for example, you are using custom configuration template and your configuration looks like:you will get an error like
Error: Could not prefetch mongodb_database provider 'mongodb': Could not evaluate MongoDB shell command: load('/root/.mongorc.js'); rs.slaveOk();printjson(db.getMongo().getDBs())
when using providers.This PR adds support for both configuration file formats
This Pull Request (PR) fixes the following issues
Fixes #562 for user @seidler2547