File tree Expand file tree Collapse file tree 3 files changed +21
-10
lines changed Expand file tree Collapse file tree 3 files changed +21
-10
lines changed Original file line number Diff line number Diff line change 10
10
11
11
* [ ` python ` ] ( #python ) : Installs and manages python, python-dev and gunicorn.
12
12
* [ ` python::install::dev ` ] ( #python--install--dev ) : Installs python development packages
13
+ * [ ` python::install::venv ` ] ( #python--install--venv ) : Installs python virtualenv packages
13
14
* [ ` python::pip::bootstrap ` ] ( #python--pip--bootstrap ) : allow to bootstrap pip when python is managed from other module
14
15
15
16
#### Private Classes
@@ -294,6 +295,10 @@ Default value: `'/opt/python'`
294
295
295
296
Installs python development packages
296
297
298
+ ### <a name =" python--install--venv " ></a >` python::install::venv `
299
+
300
+ Installs python virtualenv packages
301
+
297
302
### <a name =" python--pip--bootstrap " ></a >` python::pip::bootstrap `
298
303
299
304
allow to bootstrap pip when python is managed from other module
Original file line number Diff line number Diff line change 32
32
}
33
33
34
34
if $python::manage_venv_package {
35
- # #
36
- # # CentOS has no extra package for venv
37
- # #
38
- unless $facts [' os' ][' name' ] == ' CentOS' {
39
- package { 'python-venv' :
40
- ensure => $python::venv ,
41
- name => " ${python} -venv" ,
42
- require => Package[' python' ],
43
- }
44
- }
35
+ include python::install::venv
45
36
}
46
37
47
38
case $python::provider {
Original file line number Diff line number Diff line change
1
+ # @summary Installs python virtualenv packages
2
+ class python::install::venv {
3
+ include python
4
+
5
+ # #
6
+ # # CentOS has no extra package for venv
7
+ # #
8
+ unless $facts [' os' ][' name' ] == ' CentOS' {
9
+ package { 'python-venv' :
10
+ ensure => $python::venv ,
11
+ name => " ${python::install::python} -venv" ,
12
+ require => Package[' python' ],
13
+ }
14
+ }
15
+ }
You can’t perform that action at this time.
0 commit comments