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.

41 lines
861 B

  1. gunicorn:
  2. group.present:
  3. - name: gunicorn
  4. user.present:
  5. - name: gunicorn
  6. - groups: [gunicorn]
  7. - createhome: False
  8. /etc/systemd/system/gunicorn.service:
  9. file.managed:
  10. - source: salt://gunicorn/gunicorn.service.jinja2
  11. - template: jinja
  12. - user: root
  13. - group: root
  14. - mode: 644
  15. - require_in:
  16. - service: gunicorn.socket
  17. /etc/systemd/system/gunicorn.socket:
  18. file.managed:
  19. - source: salt://gunicorn/gunicorn.socket
  20. - user: root
  21. - group: root
  22. - mode: 644
  23. - require_in:
  24. - service: gunicorn.socket
  25. /usr/lib/tmpfiles.d/gunicorn.conf:
  26. file.managed:
  27. - source: salt://gunicorn/gunicorn.conf
  28. - user: root
  29. - group: root
  30. - mode: 644
  31. - require_in:
  32. - service: gunicorn.socket
  33. gunicorn.socket:
  34. service.running:
  35. - enable: True
  36. - require:
  37. - user: gunicorn