cdist/cdist/conf/type/__package_pip/man.rst

64 lines
1.3 KiB
ReStructuredText
Raw Normal View History

cdist-type__package_pip(7)
==========================
NAME
----
cdist-type__package_pip - Manage packages with pip
DESCRIPTION
-----------
Pip is used in Python environments to install packages.
It is also included in the python virtualenv environment.
REQUIRED PARAMETERS
-------------------
None
OPTIONAL PARAMETERS
-------------------
2016-05-20 06:50:56 +00:00
name
If supplied, use the name and not the object id as the package name.
2016-05-20 06:50:56 +00:00
pip
Instead of using pip from PATH, use the specific pip path.
2016-05-20 06:50:56 +00:00
state
Either "present" or "absent", defaults to "present"
2016-05-20 06:50:56 +00:00
runas
Run pip as specified user. By default it runs as root.
EXAMPLES
--------
2016-05-20 06:50:56 +00:00
.. code-block:: sh
# Install a package
__package_pip pyro --state present
2016-05-20 06:50:56 +00:00
# Use pip in a virtualenv located at /root/shinken_virtualenv
__package_pip pyro --state present --pip /root/shinken_virtualenv/bin/pip
2016-05-20 06:50:56 +00:00
# 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
SEE ALSO
--------
:manpage:`cdist-type__package`\ (7)
AUTHORS
-------
Nico Schottelius <nico-cdist--@--schottelius.org>
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).