@@ -57,6 +57,7 @@ Installs and manages python, python-pip, python-dev, python-virtualenv and Gunic
5757
5858** use_epel** - Boolean to determine if the epel class is used. Default: true on RHEL like systems, false otherwise
5959
60+ * Install Python from system python*
6061``` puppet
6162 class { 'python' :
6263 version => 'system',
@@ -66,6 +67,15 @@ Installs and manages python, python-pip, python-dev, python-virtualenv and Gunic
6667 gunicorn => 'absent',
6768 }
6869```
70+ * Install Python 3 from the scl repo*
71+ ``` puppet
72+ class { 'python' :
73+ ensure => 'present',
74+ version => 'rh-python36-python',
75+ dev => 'present',
76+ virtualenv => 'present',
77+ }
78+ ```
6979
7080### python::pip
7181
@@ -77,6 +87,8 @@ Installs and manages packages from pip.
7787
7888** virtualenv** - virtualenv to run pip in. Default: system (no virtualenv)
7989
90+ ** pip_provider** - pip provider to execute pip with. Default: pip.
91+
8092** url** - URL to install from. Default: none
8193
8294** owner** - The owner of the virtualenv to ensure that packages are installed with the correct permissions (must be specified). Default: root
@@ -94,6 +106,8 @@ Installs and manages packages from pip.
94106** uninstall_args** - String of additional flags to pass to pip during uninstall. Default: none
95107
96108** timeout** - Timeout for the pip install command. Defaults to 1800.
109+
110+ * Install cx_Oracle with pip*
97111``` puppet
98112 python::pip { 'cx_Oracle' :
99113 pkgname => 'cx_Oracle',
@@ -106,6 +120,17 @@ Installs and manages packages from pip.
106120 timeout => 1800,
107121 }
108122```
123+ * Install Requests with pip3*
124+ ``` puppet
125+ python::pip { 'requests' :
126+ ensure => 'present',
127+ pkgname => 'requests',
128+ pip_provider => 'pip3',
129+ virtualenv => '/var/www/project1',
130+ owner => 'root',
131+ timeout => 1800
132+ }
133+ ```
109134
110135### python::requirements
111136
0 commit comments