An open API service indexing awesome lists of open source software.

https://github.com/lostintime/chef-pythonbrew

Chef Cookbook for pythonbrew installation and managing pythons/virtualenvs
https://github.com/lostintime/chef-pythonbrew

Last synced: over 1 year ago
JSON representation

Chef Cookbook for pythonbrew installation and managing pythons/virtualenvs

Awesome Lists containing this project

README

          

pythonbrew Cookbook
===================
Installs pythonbrew for specified user

Requirements
------------
`patch`, `curl`, and `sed` utilities required

Attributes
----------


Key
Type
Description
Default


['pythonbrew']['user']
String
System user to install pythonbrew for. If is set to "root" (default) - will install system-wide.
root


['pythonbrew']['HOME']
String
User home path. For "root" user - "/root" path is hardcoded.
/home/%user%


['pythonbrew']['setups']
Arrau
Array of python brew installations, check attributes/default.rb for example.
[]

Usage
-----
Include `pythonbrew` in your node's `run_list` and add "setups" to configuration:

{
"name":"my_node",
"run_list": [
"recipe[pythonbrew]"
],
"pythonbrew": {
"setups": [
{
"user": "vagrant",
"python_version": "2.7.3",
"python_is_default": true,
"venv": "my_site",
"packages": ["pymongo", {"name": "django", "version": "1.1.4"}]
}
]
}
}

Contributing
------------
1. Fork the repository on Github
2. Create a named feature branch (like `add_component_x`)
3. Write you change
4. Write tests for your change (if applicable)
5. Run the tests, ensuring they all pass
6. Submit a Pull Request using Github

License and Authors
-------------------
Authors:

Licensed under MIT license

http://opensource.org/licenses/MIT