Skip to content

Instantly share code, notes, and snippets.

@anlutro
Created April 21, 2016 15:57
Show Gist options
  • Save anlutro/cc52002cb172c5f30a59dbc7ae8b68c4 to your computer and use it in GitHub Desktop.
Save anlutro/cc52002cb172c5f30a59dbc7ae8b68c4 to your computer and use it in GitHub Desktop.
Installing Salt from source in a virtualenv
#!/bin/sh
git clone https://github.com/saltstack/salt
cd salt
git checkout 2015.8
virtualenv -p python2 .
. ./bin/activate
pip install -e .
# if $HOME/bin is in your $PATH
ln -sf $(readlink -f bin/salt-ssh) $HOME/bin/salt-ssh
# if not...
sudo ln -sf $(readlink -f bin/salt-ssh) /usr/local/bin/salt-ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment