summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorFelipe Reyes <freyes@tty.cl>2013-12-26 16:57:08 -0300
committerFelipe Reyes <freyes@tty.cl>2013-12-26 17:24:07 -0300
commited1fed8d5cef752603ee469d2a093bd9218488ea (patch)
treea99d82df39400be80ad436be2312ad92f1557066 /manifests
parentde7c5b770adba8e6846a57f8f538617593234d8d (diff)
Expose user/group config to configure gunicorn
gunicorn setup was forcing users to run their processes with the user www-data which isn't available in all distributions (for instance Fedora Linux) and it's a good practice to run each website under different users to reduce security issues
Diffstat (limited to 'manifests')
-rw-r--r--manifests/gunicorn.pp4
1 files changed, 4 insertions, 0 deletions
diff --git a/manifests/gunicorn.pp b/manifests/gunicorn.pp
index 13f4872..159afa3 100644
--- a/manifests/gunicorn.pp
+++ b/manifests/gunicorn.pp
@@ -37,6 +37,8 @@
# dir => '/var/www/project1/current',
# bind => 'unix:/tmp/gunicorn.socket',
# environment => 'prod',
+# owner => 'www-data',
+# group => 'www-data',
# template => 'python/gunicorn.erb',
# }
#
@@ -53,6 +55,8 @@ define python::gunicorn (
$dir = false,
$bind = false,
$environment = false,
+ $owner = 'www-data',
+ $group = 'www-data',
$template = 'python/gunicorn.erb',
) {