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.

config.sls 958B

7 vuotta sitten
7 vuotta sitten
7 vuotta sitten
12345678910111213141516171819202122232425262728293031
  1. # -*- coding: utf-8 -*-
  2. # vim: ft=sls
  3. {#- Get the `tplroot` from `tpldir` #}
  4. {%- set tplroot = tpldir.split('/')[0] %}
  5. {%- from tplroot ~ "/map.jinja" import diaspora with context %}
  6. {%- from tplroot ~ "/libtofs.jinja" import files_switch with context %}
  7. {{ diaspora.install_path }}/config/database.yml:
  8. file.managed:
  9. - user: {{ diaspora.user.username }}
  10. - mode: 600
  11. - source: {{ files_switch(['database.yml'],
  12. lookup='database_config'
  13. )
  14. }}
  15. - template: jinja
  16. - context:
  17. database: {{ diaspora.database|json }}
  18. {{ diaspora.install_path }}/config/diaspora.yml:
  19. file.managed:
  20. - user: {{ diaspora.user.username }}
  21. - mode: 600
  22. - source: {{ files_switch(['diaspora.yml'],
  23. lookup='diaspora_config'
  24. )
  25. }}
  26. - template: jinja
  27. - context:
  28. configuration: {{ diaspora.configuration|json }}