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.

37 lines
986B

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