summaryrefslogtreecommitdiff
path: root/manifests/gunicorn.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/gunicorn.pp')
-rw-r--r--manifests/gunicorn.pp10
1 files changed, 8 insertions, 2 deletions
diff --git a/manifests/gunicorn.pp b/manifests/gunicorn.pp
index 2548e95..13f4872 100644
--- a/manifests/gunicorn.pp
+++ b/manifests/gunicorn.pp
@@ -25,6 +25,9 @@
# [*environment*]
# Set ENVIRONMENT variable. Default: none
#
+# [*template*]
+# Which ERB template to use. Default: python/gunicorn.erb
+#
# === Examples
#
# python::gunicorn { 'vhost':
@@ -34,11 +37,14 @@
# dir => '/var/www/project1/current',
# bind => 'unix:/tmp/gunicorn.socket',
# environment => 'prod',
+# template => 'python/gunicorn.erb',
# }
#
# === Authors
#
# Sergey Stankevich
+# Ashley Penney
+# Marc Fournier
#
define python::gunicorn (
$ensure = present,
@@ -46,8 +52,8 @@ define python::gunicorn (
$mode = 'wsgi',
$dir = false,
$bind = false,
- $app_interface = 'wsgi',
$environment = false,
+ $template = 'python/gunicorn.erb',
) {
# Parameter validation
@@ -60,7 +66,7 @@ define python::gunicorn (
mode => '0644',
owner => 'root',
group => 'root',
- content => template('python/gunicorn.erb'),
+ content => template($template),
}
}