Browse Source

Merge pull request #1 from salt-formulas/no-verbose-logs

comment verbose logging in conf
pull/4/head
Filip Pytloun 7 years ago
parent
commit
fca659d236
3 changed files with 13 additions and 6 deletions
  1. +4
    -0
      README.rst
  2. +7
    -6
      mongodb/files/mongodb.conf
  3. +2
    -0
      mongodb/map.jinja

+ 4
- 0
README.rst View File

@@ -91,6 +91,10 @@ Cluster of 3 nodes
mongodb:
server:
enabled: true
logging:
verbose: false
logLevel: 1
oplogLevel: 0
admin:
user: admin
password: magicunicorn

+ 7
- 6
mongodb/files/mongodb.conf View File

@@ -29,9 +29,6 @@ replSet = {{ server.replica_set }}
#noauth = true
auth = true

# Verbose logging output.
verbose = true

# Inspect all client data for validity on receipt (useful for
# developing drivers)
#objcheck = true
@@ -39,18 +36,22 @@ verbose = true
# Enable db quota management
#quota = true

setParameter = logLevel=1

#OpenStack guide for Juno
smallfiles = true

# Verbose logging output.
verbose = {{ server.logging.get('verbose', False)|lower }}

# logLevel
setParameter = logLevel={{ server.logging.get('logLevel', 1) }}

# Set oplogging level where n is
# 0=off (default)
# 1=W
# 2=R
# 3=both
# 7=W+some reads
#oplog = 0
oplog = {{ server.logging.get('oplogLevel', 0) }}

# Diagnostic/debugging option
#nocursors = true

+ 2
- 0
mongodb/map.jinja View File

@@ -3,6 +3,7 @@
'pkgs': ['mongodb-server', 'mongodb', 'python-pymongo', 'mongodb-clients'],
'service': 'mongodb',
'lock_dir': "/var/lock/mongodb",
'logging': {},
'bind': {
'address': '0.0.0.0',
'port': 27017
@@ -17,6 +18,7 @@
'pkgs': ['mongodb-server', 'mongodb', 'python-pymongo', 'mongodb-clients'],
'service': 'mongod',
'lock_dir': "/var/lock/mongodb",
'logging': {},
'bind': {
'address': '0.0.0.0',
'port': 27017

Loading…
Cancel
Save