-
-
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
Use the mongosh command instead of the old mongo command #703
Changes from 7 commits
e7ecd03
320c82d
0a03dbf
a3fc533
d628447
4d6b3b0
18ed042
77fc5fc
b140a18
263fc4f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,7 +177,7 @@ | |
if $handle_creds { | ||
file { $rcfile: | ||
ensure => file, | ||
content => template('mongodb/mongorc.js.erb'), | ||
content => template('mongodb/mongoshrc.js.erb'), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't this really client side config that should be managed in client.pp or client/config.pp? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Technically this isn't configuration, it is a set of commands that get executed by the client when loading this script. It is required by the provider to set up the server correctly, not configuring the client. Apart from a package install the client doesn't need configuration. So I would leave it in the server/config.pp. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't have to do anything about this now, as it's the same with mongorc. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed, I created an issue for this: #717 |
||
owner => 'root', | ||
group => 'root', | ||
mode => '0600', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really don't like this. This only affects where the rc file gets stored, but not from where it is read, that is hardcoded in the provider. See this same commit, lib/puppet/provider/mongodb.rb, line 15.