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.

65 lines
1.8KB

  1. {% set os_map = salt['grains.filter_by']({
  2. 'Debian': {
  3. 'dependencies' : [
  4. 'build-essential',
  5. 'git',
  6. 'curl',
  7. 'libcurl4-openssl-dev',
  8. 'libssl-dev',
  9. 'libxml2-dev',
  10. 'libxslt1-dev',
  11. 'imagemagick',
  12. 'libmagickwand-dev',
  13. 'ghostscript',
  14. 'nodejs',
  15. ],
  16. 'postgresql_package': 'libpq-dev',
  17. 'mysql_package' : 'libmariadbclient-dev',
  18. 'redis_package' : 'redis-server',
  19. 'redis_service' : 'redis-server',
  20. },
  21. 'RedHat': {
  22. 'dependencies' : [
  23. 'tar',
  24. 'make',
  25. 'automake',
  26. 'gcc',
  27. 'gcc-c++',
  28. 'git',
  29. 'net-tools',
  30. 'libcurl-devel',
  31. 'libxml2-devel',
  32. 'libffi-devel',
  33. 'libxslt-devel',
  34. 'wget',
  35. 'ImageMagick',
  36. 'nodejs',
  37. ],
  38. 'postgresql_package': 'postgresql-devel',
  39. 'mysql_package' : 'mariadb-devel',
  40. 'redis_package' : 'redis',
  41. 'redis_service' : 'redis',
  42. },
  43. }, merge=salt['grains.filter_by']({
  44. 'Ubuntu': {
  45. 'dependencies' : [
  46. 'build-essential',
  47. 'git',
  48. 'curl',
  49. 'libcurl4-openssl-dev',
  50. 'libxml2-dev',
  51. 'libxslt1-dev',
  52. 'libgmp-dev',
  53. 'imagemagick',
  54. 'libmagickwand-dev',
  55. 'nodejs',
  56. ],
  57. },
  58. }, grain='os', merge=salt['pillar.get']('diaspora:lookup'))) %}
  59. {% import_yaml "diaspora/defaults.yaml" as defaults %}
  60. {% do defaults.diaspora.update(os_map) %}
  61. {% set diaspora = salt['pillar.get']('diaspora', default=defaults.diaspora, merge=True) %}