-
-
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
Set default redhat dbpath to /var/lib/mongo #718
Set default redhat dbpath to /var/lib/mongo #718
Conversation
30f399b
to
c9c5024
Compare
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.
If a parameter default value is system-dependant, we should remove any default value from the manifest and only provide values from Hiera in order for the documentation not pointing to the wrong direction:
puppet-mongodb/manifests/server.pp
Line 326 in b6d3f5f
| Stdlib::Absolutepath $dbpath = '/var/lib/mongodb', |
If I understand correctly this is a backward-incompatible change?
I fixed this for all but the mongodb::server::journal parameter. puppet-mongodb/templates/mongodb.conf.erb Lines 47 to 51 in 05f973d
|
You are absolutely right. Existing databases has to be moved manually or the folder renamed before running puppet with this change. Otherwise the module will create new empty databases in the new location. |
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.
LGTM. Because it is a backwards incompatible change, maybe the first message of the PR could be adjusted to explicitly detail who is affected by the change (RedHat and derivative users) and what they should do when updating (mv /var/lib/mongodb /var/lib/mongo).
Pull Request (PR) description
Aligns the default dbpath with rpm package content.
RedHat and derivative users with existing deployments relying on the module default should explicitly set dbpath to the old default before upgrading the module.
This Pull Request (PR) fixes the following issues
Fixes #714