Created
August 13, 2014 00:51
-
-
Save ryan-lane/6d131eff9983f514e809 to your computer and use it in GitHub Desktop.
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
Ensure salt virtualenv exists: | |
virtualenv.managed: | |
- name: /srv/salt/venv | |
# Switch to the existing salt venv | |
- pip_exists_action: s | |
- system_site_packages: True | |
- requirements: /my/requirements.txt | |
Ensure modules and grains are refreshed if salt venv changes: | |
module.wait: | |
- name: saltutil.refresh_modules | |
# This needs to happen immediately, so we use watch, rather than listen. | |
- watch: | |
- virtualenv: Ensure salt virtualenv exists |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment