blob: e52e7e4cf6e6c4568cf887781fd55fb583aa6333 (
plain)
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
|
class python::install {
$python = $python::version ? {
'system' => 'python',
default => "python${python::version}",
}
package { $python: ensure => present }
$dev_ensure = $python::dev ? {
true => present,
default => absent,
}
package { [ "${python}-dev", 'python-pip' ]: ensure => $dev_ensure }
$venv_ensure = $python::virtualenv ? {
true => present,
default => absent,
}
package { 'python-virtualenv': ensure => $venv_ensure }
$gunicorn_ensure = $python::gunicorn ? {
true => present,
default => absent,
}
package { 'gunicorn': ensure => $gunicorn_ensure }
}
|