Created
June 14, 2016 22:00
-
-
Save jcheetwood/9905a7cf28bb145a28766cb729da47a4 to your computer and use it in GitHub Desktop.
SaltStack Virtualenv SLS Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
virtualenv_create: | |
virtualenv.managed: | |
- name: /home/ec2-user/{application_dir}/.virtualenv | |
- python: /usr/bin/python3 | |
- requirements: requirements.txt | |
- cwd: /home/ec2-user/{application_dir} | |
- user: root |
Author
jcheetwood
commented
Jun 14, 2016
virtualenv.managed:
- name: /srv/sopel/.virtualenvs/sopel
# - requirements: salt://sopel/files/requirements.txt
- requirements: /srv/sopel/requirements.txt
- cwd: /srv/sopel
- user: sopel
# - venv_bin: /usr/bin/pyvenv-3.4
- python: python3.4
- pip_upgrade: True
This works for me (say hello to saltstackbot).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment