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.

9 yıl önce
9 yıl önce
9 yıl önce
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. oplog = {{ server.logging.get('oplogLevel', 0) }}
  39. # Diagnostic/debugging option
  40. #nocursors = true
  41. # Ignore query hints
  42. #nohints = true
  43. # Disable the HTTP interface (Defaults to localhost:27018).
  44. #nohttpinterface = true
  45. # Turns off server-side scripting. This will result in greatly limited
  46. # functionality
  47. #noscripting = true
  48. # Turns off table scans. Any query that would do a table scan fails.
  49. #notablescan = true
  50. # Disable data file preallocation.
  51. #noprealloc = true
  52. # Specify .ns file size for new databases.
  53. # nssize = <size>
  54. # Accout token for Mongo monitoring server.
  55. #mms-token = <token>
  56. # Server name for Mongo monitoring server.
  57. #mms-name = <server-name>
  58. # Ping interval for Mongo monitoring server.
  59. #mms-interval = <seconds>
  60. # Replication Options
  61. # in replicated mongo databases, specify here whether this is a slave or master
  62. #slave = true
  63. #source = master.example.com
  64. # Slave only: specify a single database to replicate
  65. #only = master.example.com
  66. # or
  67. #master = true
  68. #source = slave.example.com
  69. # Address of a server to pair with.
  70. #pairwith = <server:port>
  71. # Address of arbiter server.
  72. #arbiter = <server:port>
  73. # Automatically resync if slave data is stale
  74. #autoresync
  75. # Custom size for replication operation log.
  76. #oplogSize = <MB>
  77. # Size limit for in-memory storage of op ids.
  78. #opIdMem = <bytes>
  79. # SSL options
  80. # Enable SSL on normal ports
  81. #sslOnNormalPorts = true
  82. # SSL Key file and password
  83. #sslPEMKeyFile = /etc/ssl/mongodb.pem
  84. #sslPEMKeyPassword = pass