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.

25 lines
629 B

  1. {% from 'common.jinja2' import app_dir, app_username %}
  2. # webassets will crash the site unless this file exists, make sure it's always there
  3. {{ app_dir }}/static/css/site-icons.css:
  4. file.managed:
  5. - user: {{ app_username }}
  6. - group: {{ app_username }}
  7. - create: True
  8. - replace: False
  9. /etc/systemd/system/webassets.service:
  10. file.managed:
  11. - source: salt://webassets.service.jinja2
  12. - template: jinja
  13. - user: root
  14. - group: root
  15. - mode: 644
  16. - require_in:
  17. - service: webassets.service
  18. webassets.service:
  19. service.running:
  20. - enable: True
  21. - require:
  22. - pip: pip-installs