Skip to content

Instantly share code, notes, and snippets.

@jfrost
Created February 3, 2014 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfrost/c09a7389034e61cbab12 to your computer and use it in GitHub Desktop.
Save jfrost/c09a7389034e61cbab12 to your computer and use it in GitHub Desktop.
python-virtualenv:
pkg.installed
handyrep:
user.present:
- fullname: Handy Rep
- shell: /bin/bash
- groups:
- wheel
/home/handyrep/envs/handyenv:
virtualenv.managed:
- system_site_packages: False
- requirements: salt://handyrep/requirements.txt
- runas: handyrep
/home/handyrep/envs/handyenv/handyrep:
file.recurse:
- source: salt://handyrep/handyrep
- user: handyrep
- group: handyrep
- include_empty: True
[handyrep@minion2 handyenv]$ ll
total 20
drwxr-xr-x 2 root root 4096 Feb 3 23:42 bin
drwxr-xr-x 3 handyrep handyrep 4096 Feb 3 23:57 build
drwxr-xr-x 7 handyrep handyrep 4096 Feb 3 23:39 handyrep
drwxr-xr-x 2 root root 4096 Feb 3 23:42 include
drwxr-xr-x 3 root root 4096 Feb 3 23:42 lib
lrwxrwxrwx 1 root root 3 Feb 3 23:42 lib64 -> lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment