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.

20 lines
584B

  1. {%- from "diaspora/map.jinja" import diaspora with context %}
  2. {{ diaspora.install_path }}/config/database.yml:
  3. file.managed:
  4. - user: {{ diaspora.user.username }}
  5. - mode: 600
  6. - source: salt://diaspora/files/database.yml
  7. - template: jinja
  8. - context:
  9. database: {{ diaspora.database|json }}
  10. {{ diaspora.install_path }}/config/diaspora.yml:
  11. file.managed:
  12. - user: {{ diaspora.user.username }}
  13. - mode: 600
  14. - source: salt://diaspora/files/diaspora.yml
  15. - template: jinja
  16. - context:
  17. configuration: {{ diaspora.configuration|json }}