https://github.com/freelancer/puppet-python
Clone of https://github.com/voxpupuli/puppet-python ba07fbb7c804ca617c2c37478d66eff77ae09e48 with pinning of pip for Python2.7
https://github.com/freelancer/puppet-python
Last synced: 11 months ago
JSON representation
Clone of https://github.com/voxpupuli/puppet-python ba07fbb7c804ca617c2c37478d66eff77ae09e48 with pinning of pip for Python2.7
- Host: GitHub
- URL: https://github.com/freelancer/puppet-python
- Owner: freelancer
- License: apache-2.0
- Created: 2021-02-10T04:11:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-24T00:20:20.000Z (over 4 years ago)
- Last Synced: 2025-01-11T08:28:52.055Z (about 1 year ago)
- Language: Ruby
- Size: 625 KB
- Stars: 0
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# puppet-python [](https://travis-ci.org/voxpupuli/puppet-python)
Puppet module for installing and managing python, pip, virtualenvs and Gunicorn virtual hosts.
**Please note:** The module [stankevich/python](https://forge.puppet.com/stankevich/python) has been deprecated and is now available under Vox Pupuli: [puppet/python](https://forge.puppet.com/puppet/python).
## Usage
For class usage refer to the [Reference]("https://github.com/voxpupuli/puppet-python/blob/master/REFERENCE.md). If contributing, this is updated with
```shell
bundle exec rake strings:generate\[',,,,false,true']
```
### hiera configuration
This module supports configuration through hiera. The following example
creates two python3 virtualenvs. The configuration also pip installs a
package into each environment.
```yaml
python::python_pyvenvs:
"/opt/env1":
version: "system"
"/opt/env2":
version: "system"
python::python_pips:
"nose":
virtualenv: "/opt/env1"
"coverage":
virtualenv: "/opt/env2"
python::python_dotfiles:
"/var/lib/jenkins/.pip/pip.conf":
config:
global:
index-url: "https://mypypi.acme.com/simple/"
extra-index-url: "https://pypi.risedev.at/simple/"
```
### Using SCL packages from RedHat or CentOS
To use this module with Linux distributions in the Red Hat family and python distributions
from softwarecollections.org, set python::provider to 'rhscl' and python::version to the name
of the collection you want to use (e.g., 'python27', 'python33', or 'rh-python34').
## Release Notes
See [Changelog](https://github.com/voxpupuli/puppet-python/blob/master/CHANGELOG.md)
## Contributors
Check out [Github contributors](https://github.com/voxpupuli/puppet-python/graphs/contributors).