SuperTux88's Diaspora Saltstack 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.

55 lines
1.3KB

  1. #
  2. # This file is managed by Salt! Do not edit by hand!
  3. #
  4. postgresql: &postgresql
  5. adapter: postgresql
  6. host: {{ database.host }}
  7. port: {{ pillar.get("diaspora:database:port", 5432) }}
  8. username: {{ database.username }}
  9. password: "{{ database.password }}"
  10. encoding: unicode
  11. mysql: &mysql
  12. adapter: mysql2
  13. host: {{ database.host }}
  14. port: {{ pillar.get("diaspora:database:port", 3306) }}
  15. username: {{ database.username }}
  16. password: "{{ database.password }}"
  17. # socket: /tmp/mysql.sock
  18. encoding: utf8mb4
  19. collation: utf8mb4_bin
  20. # Comment the postgresql line and uncomment the mysql line
  21. # if you want to use mysql
  22. common: &common
  23. <<: *{{ database.type }}
  24. # Should match environment.sidekiq.concurrency
  25. #pool: 25
  26. ##################################################
  27. #### CONFIGURE ABOVE #############################
  28. ##################################################
  29. # Normally you don't need to touch anything here
  30. combined: &combined
  31. <<: *common
  32. development:
  33. <<: *combined
  34. database: {{ database.database }}
  35. production:
  36. <<: *combined
  37. database: {{ database.database }}
  38. test:
  39. <<: *combined
  40. database: diaspora_test
  41. integration1:
  42. <<: *combined
  43. database: diaspora_integration1
  44. integration2:
  45. <<: *combined
  46. database: diaspora_integration2