|
1 | | -# == Class: python |
| 1 | +# @summary Installs and manages python, python-dev, python-virtualenv and gunicorn. |
2 | 2 | # |
3 | | -# Installs and manages python, python-dev, python-virtualenv and Gunicorn. |
4 | | -# |
5 | | -# === Parameters |
6 | | -# |
7 | | -# [*ensure*] |
8 | | -# Desired installation state for the Python package. Valid options are absent, |
9 | | -# present and latest. Default: present |
10 | | -# |
11 | | -# [*version*] |
12 | | -# Python version to install. Beware that valid values for this differ a) by |
13 | | -# the provider you choose and b) by the osfamily/operatingsystem you are using. |
14 | | -# Default: system default |
| 3 | +# @param ensure Desired installation state for the Python package. |
| 4 | +# Allowed values: absent, present and latest |
| 5 | +# @param version Python version to install. Beware that valid values for this differ a) by the provider you choose and b) by the osfamily/operatingsystem you are using. |
15 | 6 | # Allowed values: |
16 | 7 | # - provider == pip: everything pip allows as a version after the 'python==' |
17 | 8 | # - else: 'system', 'pypy', 3/3.3/... |
18 | 9 | # - Be aware that 'system' usually means python 2.X. |
19 | 10 | # - 'pypy' actually lets us use pypy as python. |
20 | 11 | # - 3/3.3/... means you are going to install the python3/python3.3/... |
21 | 12 | # package, if available on your osfamily. |
22 | | -# |
23 | | -# [*pip*] |
24 | | -# Desired installation state for python-pip. Boolean values are deprecated. |
25 | | -# Default: present |
| 13 | +# @param pip Desired installation state for python-pip. Boolean values are deprecated. |
26 | 14 | # Allowed values: 'absent', 'present', 'latest' |
27 | | -# |
28 | | -# [*dev*] |
29 | | -# Desired installation state for python-dev. Boolean values are deprecated. |
30 | | -# Default: absent |
| 15 | +# @param dev Desired installation state for python-dev. Boolean values are deprecated. |
31 | 16 | # Allowed values: 'absent', 'present', 'latest' |
32 | | -# |
33 | | -# [*virtualenv*] |
34 | | -# Desired installation state for python-virtualenv. Boolean values are |
35 | | -# deprecated. Default: absent |
| 17 | +# @param virtualenv Desired installation state for python-virtualenv. Boolean values are deprecated |
36 | 18 | # Allowed values: 'absent', 'present', 'latest |
37 | | -# |
38 | | -# [*gunicorn*] |
39 | | -# Desired installation state for Gunicorn. Boolean values are deprecated. |
40 | | -# Default: absent |
| 19 | +# @param gunicorn Desired installation state for Gunicorn. Boolean values are deprecated. |
41 | 20 | # Allowed values: 'absent', 'present', 'latest' |
42 | | -# |
43 | | -# [*manage_gunicorn*] |
44 | | -# Allow Installation / Removal of Gunicorn. Default: true |
45 | | -# |
46 | | -# [*provider*] |
47 | | -# What provider to use for installation of the packages, except gunicorn and |
48 | | -# Python itself. Default: system default provider |
| 21 | +# @param manage_gunicorn Allow Installation / Removal of Gunicorn. Default: true |
| 22 | +# @param provider What provider to use for installation of the packages, except gunicorn and Python itself. |
49 | 23 | # Allowed values: 'pip' |
| 24 | +# @param use_epel to determine if the epel class is used. |
50 | 25 | # |
51 | | -# [*use_epel*] |
52 | | -# Boolean to determine if the epel class is used. Default: true |
53 | | -# |
54 | | -# === Examples |
55 | | -# |
56 | | -# class { 'python': |
57 | | -# version => 'system', |
58 | | -# pip => 'present', |
59 | | -# dev => 'present', |
60 | | -# virtualenv => 'present', |
61 | | -# gunicorn => 'present', |
62 | | -# } |
| 26 | +# @example ensure system python is installed, with pip,dev, virtualenv, and gunicorn packages present |
| 27 | +# class { 'python': |
| 28 | +# version => 'system', |
| 29 | +# pip => 'present', |
| 30 | +# dev => 'present', |
| 31 | +# virtualenv => 'present', |
| 32 | +# gunicorn => 'present', |
| 33 | +# } |
63 | 34 | # |
64 | | -# === Authors |
65 | | -# |
66 | | -# Sergey Stankevich |
67 | | -# Garrett Honeycutt <[email protected]> |
68 | | -# |
69 | | - |
70 | 35 | class python ( |
71 | 36 | Enum['absent', 'present', 'latest'] $ensure = $python::params::ensure, |
72 | 37 | $version = $python::params::version, |
|
0 commit comments