forked from saltstack-formulas/uwsgi-formula
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpillar.example
64 lines (57 loc) · 1.94 KB
/
pillar.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
uwsgi:
# These are usually set by grains in map.jinja
lookup:
server_pkg: 'uwsgi'
pip: 'uwsgi'
plugins: ['uwsgi-plugin-php']
package:
opts: {} # this partially exposes parameters of all pkg.installed used
# application in the uwsgi server default it will be places in app_available
applications:
managed:
my_test_app.ini: # relative pathname of the application file
# may be True, False, or None where True is enabled, False, disabled, and None indicates no action
enabled: True
# May be a list of config options or None, if None, no vhost file will be managed/templated
config:
- master: True
uid: 'www-data'
gid: 'www-data'
http: '127.0.0.1:8000'
plugins: 'logfile,python3'
module: myproject.wsgi:application
chdir: '/var/www/python_app'
venv: '/usr/share/python/myproject/'
log-master: True
log-reopen: True
- env: 'SECRET_KEY=secret-key'
- env: DATABASE_NAME=project-db
- env: DATABASE_HOST=db.example.com
- env: DATABASE_USER=project_user
- env: 'DATABASE_PASSWORD=secret-password'
- if-not-reload: ''
- exec-as-user: 'fuse-zip -r /var/www/app001.zip /app'
- endif: ''
# This is the uwsgi emperor configuration
emperor:
opts: {} # this partially exposes file.managed parameters for the emperor config file
config:
autoload: 'true'
master: 'true'
workers: '2'
log-date: 'true'
uid: 'www-data'
gid: 'www-data'
emperor: '/etc/uwsgi-emperor/vassals'
# vassal configuration for uwsgi emperor
vassals:
managed:
test_app.ini:
enabled: True
config:
uid: 'www-data'
gid: 'www-data'
http: '127.0.0.1:8000'
plugin: 'python'
chdir: '/var/www/python_app'
wsgi_file: 'test.py'