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.

31 satır
806B

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