cdist/cdist/conf/type/__pyvenv/man.text

81 lines
2.0 KiB
Plaintext
Raw Normal View History

2016-04-13 06:24:44 +00:00
cdist-type__pyvenv(7)
2016-04-21 07:23:19 +00:00
=====================
2016-04-13 06:24:44 +00:00
Darko Poljak <darko.poljak--@--gmail.com>
NAME
----
cdist-type__pyvenv - Create or remove python virtual environment
DESCRIPTION
-----------
2016-04-13 18:14:06 +00:00
This cdist type allows you to create or remove python virtual
environment using pyvenv.
It assumes pyvenv is already installed. Concrete package depends
on concrete OS and/or OS version/distribution.
2016-04-13 06:24:44 +00:00
Ensure this for e.g. in your init manifest as in the following example:
--------------------------------------------------------------------------------
case "$__target_host" in
localhost)
2016-04-13 18:14:06 +00:00
__package python3-venv --state present
2016-04-13 20:34:10 +00:00
require="__package/python3-venv" __pyvenv /home/darko/testenv --pyvenv "pyvenv-3.4" --owner darko --group darko --mode 740 --state present
require="__pyvenv/home/darko/testenv" __package_pip docopt --pip /home/darko/testenv/bin/pip --runas darko --state present
2016-04-13 06:24:44 +00:00
;;
2016-04-13 20:34:10 +00:00
esac
2016-04-13 06:24:44 +00:00
--------------------------------------------------------------------------------
REQUIRED PARAMETERS
-------------------
None
OPTIONAL PARAMETERS
-------------------
state::
Either "present" or "absent", defaults to "present"
group::
Group to chgrp to
mode::
Unix permissions, suitable for chmod
owner::
User to chown to
2016-04-13 20:32:15 +00:00
pyvenv::
Use this specific pyvenv
2016-04-13 06:24:44 +00:00
venvparams::
Specific parameters to pass to pyvenv invocation
EXAMPLES
--------
--------------------------------------------------------------------------------
__pyvenv /home/services/djangoenv
2016-04-13 20:32:15 +00:00
# Use specific pyvenv
__pyvenv /home/foo/fooenv --pyvenv /usr/local/bin/pyvenv-3.4
2016-04-13 06:24:44 +00:00
# Create python virtualenv for user foo.
__pyvenv /home/foo/fooenv --group foo --user foo
# Create python virtualenv with specific parameters.
__pyvenv /home/services/djangoenv --venvparams "--copies --system-site-packages"
--------------------------------------------------------------------------------
SEE ALSO
--------
- cdist-type(7)
COPYING
-------
Copyright \(C) 2016 Darko Poljak. Free use of this software is
granted under the terms of the GNU General Public License version 3 (GPLv3).