salt.states.virtualenv

Setup of Python virtualenv sandboxes.

Members

manage

salt.states.virtualenv.manage(name, venv_bin='virtualenv', requirements='', no_site_packages=False, system_site_packages=False, distribute=False, clear=False, python='', extra_search_dir='', never_download=False, prompt='', __env__='base', runas=None, cwd=None)

Create a virtualenv and optionally manage it with pip

name
Path to the virtualenv
requirements
Path to a pip requirements file. If the path begins with salt:// the file will be transfered from the master file server.
cwd
Path to the working directory where "pip install" is executed.

Also accepts any kwargs that the virtualenv module will.

managed

salt.states.virtualenv.managed(name, venv_bin='virtualenv', requirements='', no_site_packages=False, system_site_packages=False, distribute=False, clear=False, python='', extra_search_dir='', never_download=False, prompt='', __env__='base', runas=None, cwd=None)

Create a virtualenv and optionally manage it with pip

name
Path to the virtualenv
requirements
Path to a pip requirements file. If the path begins with salt:// the file will be transfered from the master file server.
cwd
Path to the working directory where "pip install" is executed.

Also accepts any kwargs that the virtualenv module will.

Parent topic

Table Of Contents

Previous topic

salt.states.user

Next topic

Renderers