-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
MongoDB service: switch configuration format to YAML #18574
Conversation
@ericsagnes, thanks for your PR! By analyzing the annotation information on this pull request, we identified @offlinehacker, @peti and @bluescreen303 to be potential reviewers |
The only packages for which I needed mongodb 2.x were unifi and mfi, and since those provide their own config files when invoking mongodb, these changes shouldn't break anything. |
@elitak Thanks for the feedback! |
Should this include a release note which says the |
Configuration format has changed from MongoDB 2.6 to YAML and MongoDB 2.4 is EOL since March 2016.
7be1098
to
9132088
Compare
@rvl Good catch, I updated the PR with release notes. |
@@ -12,13 +12,11 @@ let | |||
|
|||
mongoCnf = pkgs.writeText "mongodb.conf" |
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.
s/.conf/.yaml/
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.
Upstream documentation uses .conf
files.
Do you think we should change to .yaml
anyway?
Hmm, no. Let's keep the upstream. |
Motivation for this change
Configuration format has changed from MongoDB 2.6 to YAML and MongoDB 2.4 is EOL since March 2016.
The YAML format is the default format and 2.4 configuration file format is meant only for backwards compatibility.
It make sense to have YAML file as default as it is how users would expect to configure MongoDB if they read the upstream documentation.
This will likely break the mongodb service if the used package is
mongodb248
, but as 2.4 is EOL and YAML format is the default and provides more configuration options there is a trade-off to chose.cc @elitak as he resurrected 2.4.8
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)