-
-
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
removed mongo cli in 6.0 is not compatible with outputs from new mongosh #648
Comments
|
In version 5 are both mongo cli and mongosh installed. In version 6 you cannot install mongo cli. A symlink does not work because the output is different. |
While the db can be finally configured via cmdline to work around the module issues.. puppet won't run at least for replset.
Would love to get some module updates to support mongosh and 6.X out of the box. |
#677 |
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
mongodb_version.rb: mongodb_version = Facter::Core::Execution.execute('mongo --version 2>&1')
is_master.rb: Facter::Core::Execution.exec("mongo --quiet #{options} --eval "#{e}printjson(db.adminCommand({ ping: 1 }))"")
replset_spec.rb: on hosts_as('slave'), %{mongo test --verbose --eval 'load("/root/.mongorc.js");try { rs.secondaryOk() } catch (err) { rs.slaveOk() };printjson(db.dummyData.findOne())'}
What behaviour did you expect instead
Output log
Any additional information you'd like to impart
The old mongo cli is used in the ruby scripts to configure the mongo db. The outputs of mongosh are not compatible with the expected outputs.
What would be the suggested way to adjust this? Rework all scripts to work with mongosh output and implement a condition for version > 5.0.9?
The text was updated successfully, but these errors were encountered: