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

gunicorn:
group.present:
- name: gunicorn
user.present:
- name: gunicorn
- groups: [gunicorn]
- createhome: False
/etc/systemd/system/gunicorn.service:
file.managed:
- source: salt://gunicorn/gunicorn.service.jinja2
- template: jinja
- user: root
- group: root
- mode: 644
- require_in:
- service: gunicorn.socket
/etc/systemd/system/gunicorn.socket:
file.managed:
- source: salt://gunicorn/gunicorn.socket
- user: root
- group: root
- mode: 644
- require_in:
- service: gunicorn.socket
/usr/lib/tmpfiles.d/gunicorn.conf:
file.managed:
- source: salt://gunicorn/gunicorn.conf
- user: root
- group: root
- mode: 644
- require_in:
- service: gunicorn.socket
gunicorn.socket:
service.running:
- enable: True
- require:
- user: gunicorn