forked from rvdh/puppet-uwsgi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparams.pp
More file actions
37 lines (36 loc) · 1.12 KB
/
params.pp
File metadata and controls
37 lines (36 loc) · 1.12 KB
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
# == Class: uwsgi::params
# Default parameters for configuring and installing
# uwsgi
#
# === Authors:
# - Josh Smeaton <josh.smeaton@gmail.com>
#
class uwsgi::params {
$package_name = 'uwsgi'
$package_ensure = 'installed'
$package_provider = 'pip'
$service_name = 'uwsgi'
$service_ensure = true
$service_enable = true
$service_provider = 'upstart'
$manage_service_file = true
$config_file = '/etc/uwsgi.ini'
$install_pip = true
$install_python_dev = true
$log_file = '/var/log/uwsgi/uwsgi-emperor.log'
$python_pip = 'python-pip'
case $::osfamily {
redhat: {
$app_directory = '/etc/uwsgi.d'
$pidfile = '/var/run/uwsgi/uwsgi.pid'
$python_dev = 'python-devel'
$socket = '/var/run/uwsgi/uwsgi.socket'
}
default: {
$app_directory = '/etc/uwsgi/apps-enabled'
$pidfile = '/run/uwsgi/uwsgi.pid'
$python_dev = 'python-dev'
$socket = '/run/uwsgi/uwsgi.socket'
}
}
}