Saltstack Official MongoDB Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

117 satır
2.5KB

  1. {%- from "mongodb/map.jinja" import server with context %}
  2. # mongodb.conf
  3. # Where to store the data.
  4. dbpath=/var/lib/mongodb
  5. #where to log
  6. logpath=/var/log/mongodb/mongodb.log
  7. logappend=true
  8. bind_ip = {{ server.bind.address }}
  9. #port = 27017
  10. # Enable journaling, http://www.mongodb.org/display/DOCS/Journaling
  11. journal=true
  12. # Enables periodic logging of CPU utilization and I/O wait
  13. #cpu = true
  14. keyFile = /etc/mongodb.key
  15. {%- if server.replica_set is defined %}
  16. replSet = {{ server.replica_set }}
  17. {%- endif %}
  18. # Turn on/off security. Off is currently the default
  19. #noauth = true
  20. auth = true
  21. # Inspect all client data for validity on receipt (useful for
  22. # developing drivers)
  23. #objcheck = true
  24. # Enable db quota management
  25. #quota = true
  26. #OpenStack guide for Juno
  27. smallfiles = true
  28. # Verbose logging output.
  29. verbose = {{ server.logging.get('verbose', False)|lower }}
  30. # logLevel
  31. setParameter = logLevel={{ server.logging.get('logLevel', 1) }}
  32. # Set oplogging level where n is
  33. # 0=off (default)
  34. # 1=W
  35. # 2=R
  36. # 3=both
  37. # 7=W+some reads
  38. {%- if server.logging.oplogLevel is defined %}
  39. oplog = {{ server.logging.get('oplogLevel') }}
  40. {%- endif %}
  41. # Diagnostic/debugging option
  42. #nocursors = true
  43. # Ignore query hints
  44. #nohints = true
  45. # Disable the HTTP interface (Defaults to localhost:27018).
  46. #nohttpinterface = true
  47. # Turns off server-side scripting. This will result in greatly limited
  48. # functionality
  49. #noscripting = true
  50. # Turns off table scans. Any query that would do a table scan fails.
  51. #notablescan = true
  52. # Disable data file preallocation.
  53. #noprealloc = true
  54. # Specify .ns file size for new databases.
  55. # nssize = <size>
  56. # Accout token for Mongo monitoring server.
  57. #mms-token = <token>
  58. # Server name for Mongo monitoring server.
  59. #mms-name = <server-name>
  60. # Ping interval for Mongo monitoring server.
  61. #mms-interval = <seconds>
  62. # Replication Options
  63. # in replicated mongo databases, specify here whether this is a slave or master
  64. #slave = true
  65. #source = master.example.com
  66. # Slave only: specify a single database to replicate
  67. #only = master.example.com
  68. # or
  69. #master = true
  70. #source = slave.example.com
  71. # Address of a server to pair with.
  72. #pairwith = <server:port>
  73. # Address of arbiter server.
  74. #arbiter = <server:port>
  75. # Automatically resync if slave data is stale
  76. #autoresync
  77. # Custom size for replication operation log.
  78. #oplogSize = <MB>
  79. # Size limit for in-memory storage of op ids.
  80. #opIdMem = <bytes>
  81. # SSL options
  82. # Enable SSL on normal ports
  83. #sslOnNormalPorts = true
  84. # SSL Key file and password
  85. #sslPEMKeyFile = /etc/ssl/mongodb.pem
  86. #sslPEMKeyPassword = pass