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.

map.jinja 862B

9 vuotta sitten
123456789101112131415161718192021222324252627282930
  1. {% set server = salt['grains.filter_by']({
  2. 'Debian': {
  3. 'pkgs': ['mongodb-server', 'mongodb', 'python-pymongo', 'mongodb-clients'],
  4. 'service': 'mongodb',
  5. 'lock_dir': "/var/lock/mongodb",
  6. 'bind': {
  7. 'address': '0.0.0.0',
  8. 'port': 27017
  9. },
  10. 'config_service': False,
  11. 'shard_service': True,
  12. 'admin': {
  13. 'username': 'root'
  14. }
  15. },
  16. 'RedHat': {
  17. 'pkgs': ['mongodb-server', 'mongodb', 'python-pymongo', 'mongodb-clients'],
  18. 'service': 'mongod',
  19. 'lock_dir': "/var/lock/mongodb",
  20. 'bind': {
  21. 'address': '0.0.0.0',
  22. 'port': 27017
  23. },
  24. 'config_service': False,
  25. 'shard_service': True,
  26. 'admin': {
  27. 'username': 'root'
  28. }
  29. },
  30. }, merge=salt['pillar.get']('mongodb:server')) %}