13.55. cdist-type__package_pip(7)¶
13.55.1. NAME¶
cdist-type__package_pip - Manage packages with pip
13.55.2. DESCRIPTION¶
Pip is used in Python environments to install packages. It is also included in the python virtualenv environment.
13.55.3. REQUIRED PARAMETERS¶
None
13.55.4. OPTIONAL PARAMETERS¶
- name
- If supplied, use the name and not the object id as the package name.
- pip
- Instead of using pip from PATH, use the specific pip path.
- state
- Either “present” or “absent”, defaults to “present”
- runas
- Run pip as specified user. By default it runs as root.
13.55.5. EXAMPLES¶
# Install a package
__package_pip pyro --state present
# Use pip in a virtualenv located at /root/shinken_virtualenv
__package_pip pyro --state present --pip /root/shinken_virtualenv/bin/pip
# Use pip in a virtualenv located at /foo/shinken_virtualenv as user foo
__package_pip pyro --state present --pip /foo/shinken_virtualenv/bin/pip --runas foo
13.55.6. SEE ALSO¶
cdist-type__package(7)
13.55.7. AUTHORS¶
Nico Schottelius <nico-cdist--@--schottelius.org>
13.55.8. COPYING¶
Copyright (C) 2012 Nico Schottelius. Free use of this software is granted under the terms of the GNU General Public License version 3 (GPLv3).