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 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. # Verbose logging output.
  22. verbose = true
  23. # Inspect all client data for validity on receipt (useful for
  24. # developing drivers)
  25. #objcheck = true
  26. # Enable db quota management
  27. #quota = true
  28. setParameter = logLevel=1
  29. #OpenStack guide for Juno
  30. smallfiles = true
  31. # Set oplogging level where n is
  32. # 0=off (default)
  33. # 1=W
  34. # 2=R
  35. # 3=both
  36. # 7=W+some reads
  37. #oplog = 0
  38. # Diagnostic/debugging option
  39. #nocursors = true
  40. # Ignore query hints
  41. #nohints = true
  42. # Disable the HTTP interface (Defaults to localhost:27018).
  43. #nohttpinterface = true
  44. # Turns off server-side scripting. This will result in greatly limited
  45. # functionality
  46. #noscripting = true
  47. # Turns off table scans. Any query that would do a table scan fails.
  48. #notablescan = true
  49. # Disable data file preallocation.
  50. #noprealloc = true
  51. # Specify .ns file size for new databases.
  52. # nssize = <size>
  53. # Accout token for Mongo monitoring server.
  54. #mms-token = <token>
  55. # Server name for Mongo monitoring server.
  56. #mms-name = <server-name>
  57. # Ping interval for Mongo monitoring server.
  58. #mms-interval = <seconds>
  59. # Replication Options
  60. # in replicated mongo databases, specify here whether this is a slave or master
  61. #slave = true
  62. #source = master.example.com
  63. # Slave only: specify a single database to replicate
  64. #only = master.example.com
  65. # or
  66. #master = true
  67. #source = slave.example.com
  68. # Address of a server to pair with.
  69. #pairwith = <server:port>
  70. # Address of arbiter server.
  71. #arbiter = <server:port>
  72. # Automatically resync if slave data is stale
  73. #autoresync
  74. # Custom size for replication operation log.
  75. #oplogSize = <MB>
  76. # Size limit for in-memory storage of op ids.
  77. #opIdMem = <bytes>
  78. # SSL options
  79. # Enable SSL on normal ports
  80. #sslOnNormalPorts = true
  81. # SSL Key file and password
  82. #sslPEMKeyFile = /etc/ssl/mongodb.pem
  83. #sslPEMKeyPassword = pass