Skip to content
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

Merged
merged 2 commits into from
Sep 21, 2016

Conversation

ericsagnes
Copy link
Contributor

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
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • OS X
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@ericsagnes, thanks for your PR! By analyzing the annotation information on this pull request, we identified @offlinehacker, @peti and @bluescreen303 to be potential reviewers

@elitak
Copy link
Contributor

elitak commented Sep 14, 2016

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.

@ericsagnes
Copy link
Contributor Author

@elitak Thanks for the feedback!

@rvl
Copy link
Contributor

rvl commented Sep 17, 2016

Should this include a release note which says the extraConfig format has changed to YAML?

@rvl rvl mentioned this pull request Sep 17, 2016
7 tasks
Configuration format has changed from MongoDB 2.6 to
YAML and MongoDB 2.4 is EOL since March 2016.
@ericsagnes
Copy link
Contributor Author

@rvl Good catch, I updated the PR with release notes.
Thank you!

@rvl rvl mentioned this pull request Sep 19, 2016
17 tasks
@@ -12,13 +12,11 @@ let

mongoCnf = pkgs.writeText "mongodb.conf"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/.conf/.yaml/

Copy link
Contributor Author

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?

@domenkozar
Copy link
Member

Hmm, no. Let's keep the upstream.

@domenkozar domenkozar merged commit 001d314 into NixOS:master Sep 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants