8
8
9
9
#### Public Classes
10
10
11
- * [ ` python ` ] ( #python ) : Installs and manages python, python-dev, python-virtualenv and gunicorn.
11
+ * [ ` python ` ] ( #python ) : Installs and manages python, python-dev and gunicorn.
12
12
* [ ` python::pip::bootstrap ` ] ( #pythonpipbootstrap ) : allow to bootstrap pip when python is managed from other module
13
13
14
14
#### Private Classes
24
24
* [ ` python::pip ` ] ( #pythonpip ) : Installs and manages packages from pip.
25
25
* [ ` python::pyvenv ` ] ( #pythonpyvenv ) : Create a Python3 virtualenv using pyvenv.
26
26
* [ ` python::requirements ` ] ( #pythonrequirements ) : Installs and manages Python packages from requirements file.
27
- * [ ` python::virtualenv ` ] ( #pythonvirtualenv ) : Creates Python virtualenv.
28
27
29
28
### Data types
30
29
38
37
39
38
### ` python `
40
39
41
- Installs and manages python, python-dev, python-virtualenv and gunicorn.
40
+ Installs and manages python, python-dev and gunicorn.
42
41
43
42
#### Examples
44
43
@@ -49,7 +48,6 @@ class { 'python':
49
48
version => 'system',
50
49
pip => 'present',
51
50
dev => 'present',
52
- virtualenv => 'present',
53
51
gunicorn => 'present',
54
52
}
55
53
```
@@ -61,7 +59,6 @@ class { 'python' :
61
59
ensure => 'present',
62
60
version => 'rh-python36-python',
63
61
dev => 'present',
64
- virtualenv => 'present',
65
62
}
66
63
```
67
64
@@ -90,7 +87,7 @@ Allowed values:
90
87
- 3/3.3/... means you are going to install the python3/python3.3/...
91
88
package, if available on your osfamily.
92
89
93
- Default value: ` $python::params::version `
90
+ Default value: ` '3' `
94
91
95
92
##### ` pip `
96
93
@@ -108,14 +105,6 @@ Desired installation state for the python-dev package.
108
105
109
106
Default value: ` $python::params::dev `
110
107
111
- ##### ` virtualenv `
112
-
113
- Data type: ` Python::Package::Ensure `
114
-
115
- Desired installation state for the virtualenv package
116
-
117
- Default value: ` $python::params::virtualenv `
118
-
119
108
##### ` gunicorn `
120
109
121
110
Data type: ` Python::Package::Ensure `
@@ -172,14 +161,6 @@ Data type: `Boolean`
172
161
173
162
Default value: ` $python::params::manage_python_package `
174
163
175
- ##### ` manage_virtualenv_package `
176
-
177
- Data type: ` Boolean `
178
-
179
-
180
-
181
- Default value: ` $python::params::manage_virtualenv_package `
182
-
183
164
##### ` manage_pip_package `
184
165
185
166
Data type: ` Boolean `
@@ -202,14 +183,6 @@ Data type: `Hash`
202
183
203
184
204
185
205
- Default value: ` {} `
206
-
207
- ##### ` python_virtualenvs `
208
-
209
- Data type: ` Hash `
210
-
211
-
212
-
213
186
Default value: ` {} `
214
187
215
188
##### ` python_pyvenvs `
@@ -1023,181 +996,6 @@ The maximum time in seconds the "pip install" command should take.
1023
996
1024
997
Default value: ` 1800 `
1025
998
1026
- ### ` python::virtualenv `
1027
-
1028
- Creates Python virtualenv.
1029
-
1030
- #### Examples
1031
-
1032
- ##### install a virtual env at /var/www/project1
1033
-
1034
- ``` puppet
1035
- python::virtualenv { '/var/www/project1':
1036
- ensure => present,
1037
- version => 'system',
1038
- requirements => '/var/www/project1/requirements.txt',
1039
- proxy => 'http://proxy.domain.com:3128',
1040
- systempkgs => true,
1041
- index => 'http://www.example.com/simple/',
1042
- }
1043
- ```
1044
-
1045
- #### Parameters
1046
-
1047
- The following parameters are available in the ` python::virtualenv ` defined type.
1048
-
1049
- ##### ` ensure `
1050
-
1051
- Data type: ` Python::Package::Ensure `
1052
-
1053
-
1054
-
1055
- Default value: ` 'present' `
1056
-
1057
- ##### ` version `
1058
-
1059
- Data type: ` Python::Version `
1060
-
1061
- Python version to use.
1062
-
1063
- Default value: ` 'system' `
1064
-
1065
- ##### ` requirements `
1066
-
1067
- Data type: ` Variant[Boolean,Stdlib::Absolutepath] `
1068
-
1069
- Path to pip requirements.txt file
1070
-
1071
- Default value: `` false ``
1072
-
1073
- ##### ` systempkgs `
1074
-
1075
- Data type: ` Boolean `
1076
-
1077
- Copy system site-packages into virtualenv.
1078
-
1079
- Default value: `` false ``
1080
-
1081
- ##### ` venv_dir `
1082
-
1083
- Data type: ` Stdlib::Absolutepath `
1084
-
1085
- Directory to install virtualenv to
1086
-
1087
- Default value: ` $name `
1088
-
1089
- ##### ` ensure_venv_dir `
1090
-
1091
- Data type: ` Boolean `
1092
-
1093
- Create $venv_dir
1094
-
1095
- Default value: `` true ``
1096
-
1097
- ##### ` distribute `
1098
-
1099
- Data type: ` Boolean `
1100
-
1101
- Include distribute in the virtualenv
1102
-
1103
- Default value: `` true ``
1104
-
1105
- ##### ` index `
1106
-
1107
- Data type: ` Variant[Boolean,Stdlib::HTTPUrl] `
1108
-
1109
- Base URL of Python package index
1110
-
1111
- Default value: `` false ``
1112
-
1113
- ##### ` owner `
1114
-
1115
- Data type: ` String[1] `
1116
-
1117
- The owner of the virtualenv being manipulated
1118
-
1119
- Default value: ` 'root' `
1120
-
1121
- ##### ` group `
1122
-
1123
- Data type: ` String[1] `
1124
-
1125
- The group relating to the virtualenv being manipulated
1126
-
1127
- Default value: ` 'root' `
1128
-
1129
- ##### ` mode `
1130
-
1131
- Data type: ` Stdlib::Filemode `
1132
-
1133
- Optionally specify directory mode
1134
-
1135
- Default value: ` '0755' `
1136
-
1137
- ##### ` proxy `
1138
-
1139
- Data type: ` Optional[Stdlib::HTTPUrl] `
1140
-
1141
- Proxy server to use for outbound connections
1142
-
1143
- Default value: `` undef ``
1144
-
1145
- ##### ` environment `
1146
-
1147
- Data type: ` Array `
1148
-
1149
- Additional environment variables required to install the packages
1150
-
1151
- Default value: ` [] `
1152
-
1153
- ##### ` path `
1154
-
1155
- Data type: ` Array[Stdlib::Absolutepath] `
1156
-
1157
- Specifies the PATH variable
1158
-
1159
- Default value: ` ['/bin', '/usr/bin', '/usr/sbin', '/usr/local/bin',] `
1160
-
1161
- ##### ` cwd `
1162
-
1163
- Data type: ` Optional[Stdlib::Absolutepath] `
1164
-
1165
- The directory from which to run the "pip install" command
1166
-
1167
- Default value: `` undef ``
1168
-
1169
- ##### ` timeout `
1170
-
1171
- Data type: ` Integer `
1172
-
1173
- The maximum time in seconds the "pip install" command should take
1174
-
1175
- Default value: ` 1800 `
1176
-
1177
- ##### ` pip_args `
1178
-
1179
- Data type: ` String `
1180
-
1181
- Arguments to pass to pip during initialization
1182
-
1183
- Default value: ` '' `
1184
-
1185
- ##### ` extra_pip_args `
1186
-
1187
- Data type: ` String `
1188
-
1189
- Extra arguments to pass to pip after requirements file
1190
-
1191
- Default value: ` '' `
1192
-
1193
- ##### ` virtualenv `
1194
-
1195
- Data type: ` Optional[Stdlib::Absolutepath] `
1196
-
1197
-
1198
-
1199
- Default value: `` undef ``
1200
-
1201
999
## Data types
1202
1000
1203
1001
### ` Python::Loglevel `
0 commit comments