[SERVER-14750] Convert RPM and DEB mongod.conf files to new YAML format Created: 31/Jul/14  Updated: 05/Nov/15  Resolved: 22/Apr/15

Status: Closed
Project: Core Server
Component/s: Packaging, Usability
Affects Version/s: None
Fix Version/s: 3.0.7, 3.1.2

Type: Improvement Priority: Major - P3
Reporter: Eric Milkie Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 1
Labels: build-planning, community-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-13926 Update default yum/apt (rpm/deb) mong... Closed
Related
related to SERVER-18726 Add example configuration files Closed
Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: Server 2.7.4, Server 2.7.5, Server 2.7.6, BUILD 2 04/24/15
Participants:

 Description   

rpm/mongod.conf uses an old config format and contains quite a few anachronisms (settings that in 2.6 were deprecated or should no longer need to be set). It would be good to go through and convert this to a YAML config format.



 Comments   
Comment by Githook User [ 10/Sep/15 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: SERVER-14750: convert config files to yaml for packages

(cherry picked from commit a459fcf9e758ebf6ef8c752d1972226121eda85d)
Branch: v3.0
https://github.com/mongodb/mongo/commit/23170a4d6251cd57de2179905d9fcb5ec1e4a115

Comment by Githook User [ 22/Apr/15 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: SERVER-14750: convert config files to yaml for packages
Branch: master
https://github.com/mongodb/mongo/commit/a459fcf9e758ebf6ef8c752d1972226121eda85d

Comment by Adam Comerford [ 31/Jul/14 ]

This gives an approximation of the current config file, notes the removal of some options and should have the same options selected with similar commentary. I will leave it to others to determine if these should remain the defaults

# Default YAML Configuration file for RPM Packaging
# Replacing legacy mongod.conf format
# See http://docs.mongodb.org/manual/reference/configuration-options/
 
# Specify where and how to log
# Leave at default verbosity (0)
 
systemLog:
   destination: file
   path: "/var/log/mongodb/mongodb.log"
   logAppend: true
#  verbosity: 0
 
# fork and run in background
# location of pidfile
 
processManagement:
   fork: true
   pidFilePath: "/var/run/mongodb/mongod.pid"
 
# Listen to local interface only. Comment out to listen on all interfaces. 
# HTTP interface is disabled by default
 
net:
   bindIp: 127.0.0.1
   port: 27017
   http: 
      enabled: false
 
# Storage sets the data location
# Defaults enable journaling, pre-allocate, no quotas
# Default .ns file size is 16 (MiB)
 
storage:
   dbPath: "/var/lib/mongo"
#  preallocDataFiles: false
#  nsSize: <size>
#  journal:
#     enabled: false
#  quota:
#     enforced: true
 
# Authorization is off by default
# Disabling javascript will result in greatly limited functionality
 
security:
#  keyFile: "/path/to/secure/keyfile"
   authorization: disabled
#  javascriptEnabled: false
 
# Sample parameters
#setParameter:
#  notablescan: 1
#  traceExceptions: 1
 
# Replication Options, uncomment and set appropriately for set member
 
#replication:
#  replSetName: "setName"
#  oplogSizeMB: 1024
 
# NOTES:
# 
# Object check is now on by default
# diaglog has been deprecated
# nohints, cpu=true are not available in YAML format

Generated at Thu Feb 08 03:35:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.