SuperTux88's Diaspora Saltstack Formula
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

59 行
1.5KB

  1. {%- from "diaspora/map.jinja" import diaspora with context %}
  2. include:
  3. - diaspora.install
  4. - diaspora.config
  5. /etc/systemd/system/diaspora-sidekiq.service:
  6. file.managed:
  7. - user: root
  8. - mode: 644
  9. - source: salt://diaspora/files/diaspora-sidekiq.service
  10. - template: jinja
  11. - context:
  12. diaspora: {{ diaspora|json }}
  13. /etc/systemd/system/diaspora-web.service:
  14. file.managed:
  15. - user: root
  16. - mode: 644
  17. - source: salt://diaspora/files/diaspora-web.service
  18. - template: jinja
  19. - context:
  20. diaspora: {{ diaspora|json }}
  21. /etc/systemd/system/diaspora.target:
  22. file.managed:
  23. - user: root
  24. - mode: 644
  25. - source: salt://diaspora/files/diaspora.target
  26. - template: jinja
  27. - context:
  28. diaspora: {{ diaspora|json }}
  29. diaspora_sidekiq_service:
  30. service.enabled:
  31. - name: diaspora-sidekiq
  32. - requre:
  33. - file: /etc/systemd/system/diaspora-sidekiq.service
  34. diaspora_web_service:
  35. service.enabled:
  36. - name: diaspora-web
  37. - requre:
  38. - file: /etc/systemd/system/diaspora-web.service
  39. diaspora_service:
  40. service.running:
  41. - name: diaspora.target
  42. - enable: True
  43. - requre:
  44. - cmd: diaspora_precompile_assets
  45. - file: /etc/systemd/system/diaspora.target
  46. - service: diaspora_sidekiq_service
  47. - service: diaspora_web_service
  48. - watch:
  49. - git: diaspora_git
  50. - file: {{ diaspora.install_path }}/config/database.yml
  51. - file: {{ diaspora.install_path }}/config/diaspora.yml