8
8
_ Public Classes_
9
9
10
10
* [ ` python ` ] ( #python ) : Installs and manages python, python-dev, python-virtualenv and gunicorn.
11
- * [ ` python::config ` ] ( #pythonconfig ) : Optionally installs the gunicorn service
12
11
13
12
_ Private Classes_
14
13
14
+ * ` python::config ` : Optionally installs the gunicorn service
15
15
* ` python::install ` : Installs core python packages
16
16
* ` python::params ` : The python Module default configuration settings.
17
17
@@ -53,7 +53,6 @@ The following parameters are available in the `python` class.
53
53
Data type: ` Enum['absent', 'present', 'latest'] `
54
54
55
55
Desired installation state for the Python package.
56
- Allowed values: absent, present and latest
57
56
58
57
Default value: $python::params::ensure
59
58
@@ -208,18 +207,6 @@ Data type: `Stdlib::Absolutepath`
208
207
209
208
Default value: $python::params::anaconda_install_path
210
209
211
- ### python::config
212
-
213
- Optionally installs the gunicorn service
214
-
215
- #### Examples
216
-
217
- #####
218
-
219
- ``` puppet
220
- include python::config
221
- ```
222
-
223
210
## Defined types
224
211
225
212
### python::dotfile
@@ -237,8 +224,8 @@ python::dotfile { '/var/lib/jenkins/.pip/pip.conf':
237
224
group => 'jenkins',
238
225
config => {
239
226
'global' => {
240
- 'index-url => 'https://mypypi.acme.com/simple/'
241
- 'extra-index-url => https://pypi.risedev.at/simple/
227
+ 'index-url' => 'https://mypypi.acme.com/simple/'
228
+ 'extra-index-url' => ' https://pypi.risedev.at/simple/'
242
229
}
243
230
}
244
231
}
@@ -250,39 +237,39 @@ The following parameters are available in the `python::dotfile` defined type.
250
237
251
238
##### ` ensure `
252
239
253
- Data type: ` Any `
240
+ Data type: ` Enum['absent', 'present'] `
241
+
254
242
255
- present|absent. Default: present
256
243
257
244
Default value: 'present'
258
245
259
246
##### ` filename `
260
247
261
248
Data type: ` Any `
262
249
263
- Filename. Default: $title
250
+ Filename.
264
251
265
252
Default value: $title
266
253
267
254
##### ` mode `
268
255
269
- Data type: ` Any `
256
+ Data type: ` String `
270
257
271
- File mode. Default: 0644
258
+ File mode.
272
259
273
260
Default value: '0644'
274
261
275
262
##### ` owner `
276
263
277
- Data type: ` Any `
264
+ Data type: ` String `
278
265
279
266
user owner of dotfile
280
267
281
268
Default value: 'root'
282
269
283
270
##### ` group `
284
271
285
- Data type: ` Any `
272
+ Data type: ` String `
286
273
287
274
group owner of dotfile
288
275
@@ -292,7 +279,7 @@ Default value: 'root'
292
279
293
280
Data type: ` Any `
294
281
295
- Config hash. This will be expanded to an ini-file. Default: {}
282
+ Config hash. This will be expanded to an ini-file.
296
283
297
284
Default value: {}
298
285
@@ -337,23 +324,23 @@ Default value: present
337
324
338
325
Data type: ` Any `
339
326
340
- Configure the gunicorn config directory path. Default: /etc/gunicorn.d
327
+ Configure the gunicorn config directory path.
341
328
342
329
Default value: '/etc/gunicorn.d'
343
330
344
331
##### ` manage_config_dir `
345
332
346
333
Data type: ` Any `
347
334
348
- Set if the gunicorn config directory should be created. Default: false
335
+ Set if the gunicorn config directory should be created.
349
336
350
337
Default value: ` false `
351
338
352
339
##### ` virtualenv `
353
340
354
341
Data type: ` Any `
355
342
356
- Run in virtualenv, specify directory. Default: disabled
343
+ Run in virtualenv, specify directory.
357
344
358
345
Default value: ` false `
359
346
@@ -387,7 +374,7 @@ Default value: `false`
387
374
388
375
Data type: ` Any `
389
376
390
- Set ENVIRONMENT variable. Default: none
377
+ Set ENVIRONMENT variable.
391
378
392
379
Default value: ` false `
393
380
@@ -419,15 +406,15 @@ Default value: 30
419
406
420
407
Data type: ` Any `
421
408
422
- Which ERB template to use. Default: python/gunicorn.erb
409
+ Which ERB template to use.
423
410
424
411
Default value: 'python/gunicorn.erb'
425
412
426
413
##### ` args `
427
414
428
415
Data type: ` Any `
429
416
430
- Custom arguments to add in gunicorn config file. Default: [ ]
417
+ Custom arguments to add in gunicorn config file.
431
418
432
419
Default value: [ ]
433
420
@@ -784,23 +771,23 @@ The following parameters are available in the `python::requirements` defined typ
784
771
785
772
Data type: ` Any `
786
773
787
- Path to the requirements file. Defaults to the resource name
774
+ Path to the requirements file.
788
775
789
776
Default value: $name
790
777
791
778
##### ` virtualenv `
792
779
793
780
Data type: ` Any `
794
781
795
- virtualenv to run pip in. Default: system-wide
782
+ virtualenv to run pip in.
796
783
797
784
Default value: 'system'
798
785
799
786
##### ` pip_provider `
800
787
801
788
Data type: ` Enum['pip', 'pip3'] `
802
789
803
- version of pip you wish to use. Default: pip
790
+ version of pip you wish to use.
804
791
805
792
Default value: 'pip'
806
793
@@ -951,7 +938,7 @@ Default value: `false`
951
938
952
939
Data type: ` Any `
953
940
954
- Copy system site-packages into virtualenv. Default: don't If virtualenv version < 1.7 this flag has no effect since
941
+ Copy system site-packages into virtualenv.
955
942
956
943
Default value: ` false `
957
944
@@ -967,7 +954,7 @@ Default value: $name
967
954
968
955
Data type: ` Any `
969
956
970
- reate $venv_dir
957
+ Create $venv_dir
971
958
972
959
Default value: ` true `
973
960
0 commit comments