Skip to content

Commit c9407f7

Browse files
author
Sergey Stankevich
committed
Adding pip; modifying Gunicorn template for Django
1 parent 4f36c27 commit c9407f7

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[puppet-python](https://github.com/stankevich/puppet-python)
22
======
33

4-
Puppet module for installing and managing python, pip, virtualenv, Gunicorn virtual hosts
4+
Puppet module for installing and managing python, pip, virtualenvs and Gunicorn virtual hosts.
55

66
## Usage
77

manifests/install.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
default => absent,
1313
}
1414

15-
package { "${python}-dev": ensure => $dev_ensure }
15+
package { [ "${python}-dev", 'python-pip' ]: ensure => $dev_ensure }
1616

1717
$venv_ensure = $python::virtualenv ? {
1818
true => present,

templates/gunicorn.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ CONFIG = {
3030
<% end -%>
3131
'--workers=<%= @processorcount.to_i*2 %>',
3232
'--timeout=30',
33+
<% if mode != 'django' -%>
3334
'app:app',
35+
<% end -%>
3436
),
3537
}

0 commit comments

Comments
 (0)