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.

76 lines
2.1KB

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