mongodb: | mongodb: | ||||
server: | server: | ||||
enabled: true | enabled: true | ||||
logging: | |||||
verbose: false | |||||
logLevel: 1 | |||||
oplogLevel: 0 | |||||
admin: | admin: | ||||
user: admin | user: admin | ||||
password: magicunicorn | password: magicunicorn |
#noauth = true | #noauth = true | ||||
auth = true | auth = true | ||||
# Verbose logging output. | |||||
verbose = true | |||||
# Inspect all client data for validity on receipt (useful for | # Inspect all client data for validity on receipt (useful for | ||||
# developing drivers) | # developing drivers) | ||||
#objcheck = true | #objcheck = true | ||||
# Enable db quota management | # Enable db quota management | ||||
#quota = true | #quota = true | ||||
setParameter = logLevel=1 | |||||
#OpenStack guide for Juno | #OpenStack guide for Juno | ||||
smallfiles = true | smallfiles = true | ||||
# Verbose logging output. | |||||
verbose = {{ server.logging.get('verbose', 'false') }} | |||||
# logLevel | |||||
setParameter = logLevel={{ server.logging.get('logLevel', 1) }} | |||||
# Set oplogging level where n is | # Set oplogging level where n is | ||||
# 0=off (default) | # 0=off (default) | ||||
# 1=W | # 1=W | ||||
# 2=R | # 2=R | ||||
# 3=both | # 3=both | ||||
# 7=W+some reads | # 7=W+some reads | ||||
#oplog = 0 | |||||
oplog = {{ server.logging.get('oplogLevel', 0) }} | |||||
# Diagnostic/debugging option | # Diagnostic/debugging option | ||||
#nocursors = true | #nocursors = true |
'pkgs': ['mongodb-server', 'mongodb', 'python-pymongo', 'mongodb-clients'], | 'pkgs': ['mongodb-server', 'mongodb', 'python-pymongo', 'mongodb-clients'], | ||||
'service': 'mongodb', | 'service': 'mongodb', | ||||
'lock_dir': "/var/lock/mongodb", | 'lock_dir': "/var/lock/mongodb", | ||||
'logging': {}, | |||||
'bind': { | 'bind': { | ||||
'address': '0.0.0.0', | 'address': '0.0.0.0', | ||||
'port': 27017 | 'port': 27017 | ||||
'pkgs': ['mongodb-server', 'mongodb', 'python-pymongo', 'mongodb-clients'], | 'pkgs': ['mongodb-server', 'mongodb', 'python-pymongo', 'mongodb-clients'], | ||||
'service': 'mongod', | 'service': 'mongod', | ||||
'lock_dir': "/var/lock/mongodb", | 'lock_dir': "/var/lock/mongodb", | ||||
'logging': {}, | |||||
'bind': { | 'bind': { | ||||
'address': '0.0.0.0', | 'address': '0.0.0.0', | ||||
'port': 27017 | 'port': 27017 |