88_ Public Classes_
99
1010* [ ` python ` ] ( #python ) : Installs and manages python, python-dev, python-virtualenv and gunicorn.
11- * [ ` python::config ` ] ( #pythonconfig ) : Optionally installs the gunicorn service
1211
1312_ Private Classes_
1413
14+ * ` python::config ` : Optionally installs the gunicorn service
1515* ` python::install ` : Installs core python packages
1616* ` python::params ` : The python Module default configuration settings.
1717
@@ -53,7 +53,6 @@ The following parameters are available in the `python` class.
5353Data type: ` Enum['absent', 'present', 'latest'] `
5454
5555Desired installation state for the Python package.
56- Allowed values: absent, present and latest
5756
5857Default value: $python::params::ensure
5958
@@ -208,18 +207,6 @@ Data type: `Stdlib::Absolutepath`
208207
209208Default value: $python::params::anaconda_install_path
210209
211- ### python::config
212-
213- Optionally installs the gunicorn service
214-
215- #### Examples
216-
217- #####
218-
219- ``` puppet
220- include python::config
221- ```
222-
223210## Defined types
224211
225212### python::dotfile
@@ -237,8 +224,8 @@ python::dotfile { '/var/lib/jenkins/.pip/pip.conf':
237224 group => 'jenkins',
238225 config => {
239226 '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/'
242229 }
243230 }
244231}
@@ -250,39 +237,39 @@ The following parameters are available in the `python::dotfile` defined type.
250237
251238##### ` ensure `
252239
253- Data type: ` Any `
240+ Data type: ` Enum['absent', 'present'] `
241+
254242
255- present|absent. Default: present
256243
257244Default value: 'present'
258245
259246##### ` filename `
260247
261248Data type: ` Any `
262249
263- Filename. Default: $title
250+ Filename.
264251
265252Default value: $title
266253
267254##### ` mode `
268255
269- Data type: ` Any `
256+ Data type: ` String `
270257
271- File mode. Default: 0644
258+ File mode.
272259
273260Default value: '0644'
274261
275262##### ` owner `
276263
277- Data type: ` Any `
264+ Data type: ` String `
278265
279266user owner of dotfile
280267
281268Default value: 'root'
282269
283270##### ` group `
284271
285- Data type: ` Any `
272+ Data type: ` String `
286273
287274group owner of dotfile
288275
@@ -292,7 +279,7 @@ Default value: 'root'
292279
293280Data type: ` Any `
294281
295- Config hash. This will be expanded to an ini-file. Default: {}
282+ Config hash. This will be expanded to an ini-file.
296283
297284Default value: {}
298285
@@ -337,23 +324,23 @@ Default value: present
337324
338325Data type: ` Any `
339326
340- Configure the gunicorn config directory path. Default: /etc/gunicorn.d
327+ Configure the gunicorn config directory path.
341328
342329Default value: '/etc/gunicorn.d'
343330
344331##### ` manage_config_dir `
345332
346333Data type: ` Any `
347334
348- Set if the gunicorn config directory should be created. Default: false
335+ Set if the gunicorn config directory should be created.
349336
350337Default value: ` false `
351338
352339##### ` virtualenv `
353340
354341Data type: ` Any `
355342
356- Run in virtualenv, specify directory. Default: disabled
343+ Run in virtualenv, specify directory.
357344
358345Default value: ` false `
359346
@@ -387,7 +374,7 @@ Default value: `false`
387374
388375Data type: ` Any `
389376
390- Set ENVIRONMENT variable. Default: none
377+ Set ENVIRONMENT variable.
391378
392379Default value: ` false `
393380
@@ -419,15 +406,15 @@ Default value: 30
419406
420407Data type: ` Any `
421408
422- Which ERB template to use. Default: python/gunicorn.erb
409+ Which ERB template to use.
423410
424411Default value: 'python/gunicorn.erb'
425412
426413##### ` args `
427414
428415Data type: ` Any `
429416
430- Custom arguments to add in gunicorn config file. Default: [ ]
417+ Custom arguments to add in gunicorn config file.
431418
432419Default value: [ ]
433420
@@ -784,23 +771,23 @@ The following parameters are available in the `python::requirements` defined typ
784771
785772Data type: ` Any `
786773
787- Path to the requirements file. Defaults to the resource name
774+ Path to the requirements file.
788775
789776Default value: $name
790777
791778##### ` virtualenv `
792779
793780Data type: ` Any `
794781
795- virtualenv to run pip in. Default: system-wide
782+ virtualenv to run pip in.
796783
797784Default value: 'system'
798785
799786##### ` pip_provider `
800787
801788Data type: ` Enum['pip', 'pip3'] `
802789
803- version of pip you wish to use. Default: pip
790+ version of pip you wish to use.
804791
805792Default value: 'pip'
806793
@@ -951,7 +938,7 @@ Default value: `false`
951938
952939Data type: ` Any `
953940
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.
955942
956943Default value: ` false `
957944
@@ -967,7 +954,7 @@ Default value: $name
967954
968955Data type: ` Any `
969956
970- reate $venv_dir
957+ Create $venv_dir
971958
972959Default value: ` true `
973960
0 commit comments