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 jaren geleden
9 jaren geleden
9 jaren geleden
9 jaren geleden
9 jaren geleden
9 jaren geleden
9 jaren geleden
12345678910111213141516171819202122232425
  1. {%- from "mongodb/map.jinja" import server with context %}
  2. # mongodb.conf
  3. # for documentation of all options, see:
  4. # http://docs.mongodb.org/manual/reference/configuration-options/
  5. port={{ server.bind.port }}
  6. bind_ip={{ server.bind.address }}
  7. logpath=/var/log/mongodb/mongod.log
  8. logappend=true
  9. dbpath=/var/lib/mongodb
  10. journal=true
  11. {%- if server.authorization.get('enabled', False) %}
  12. auth=true
  13. {%- endif %}
  14. {%- if server.shared_key is defined %}
  15. keyFile=/etc/mongodb.key
  16. {%- endif %}
  17. {%- if server.replica_set is defined %}
  18. replSet={{ server.replica_set }}
  19. {%- endif %}