Skip to content

Instantly share code, notes, and snippets.

@baijum
Created June 30, 2012 18:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save baijum/3025019 to your computer and use it in GitHub Desktop.
Save baijum/3025019 to your computer and use it in GitHub Desktop.
Salt Development Environment
## Get OS/build dependancies
$ sudo apt-get install python2.7-dev build-essential libtool autoconf automake swig uuid-dev python-m2crypto
## Download 0MQ
$ wget http://download.zeromq.org/zeromq-2.2.0.tar.gz
## Unpack
$ tar -xvzf zeromq-2.2.0.tar.gz
## CD into dir
$ cd zeromq-2.2.0/
## configure and make (upon configure's success)
$ ./configure && make
## make install
$ sudo make install
## per 6. On Linux, run sudo ldconfig after installing ØMQ.
## http://www.zeromq.org/area:download
$ sudo ldconfig
## Fork Salt Repo
$ https://github.com/saltstack/salt/fork
## Clone your Salt Fork -- replace $username
$ git clone git://github.com/$username/salt.git
$ cd salt
## create virtualenv
## we need system-site-packages because m2crypto via PIP is broken
## http://vitorpellegrino.com/blog/2012/01/11/undefined-symbol-sslv2-method-in-ubuntu-11-10-and-12-04-alpha-1-installing-lernanta/
## https://github.com/saltstack/salt/issues/391
$ virtualenv --system-site-packages venv
## activate virtualenv
$ source venv/bin/activate
## comment out M2Crypto in requirements.txt
# pip requirements file for Salt
Jinja2
#M2Crypto
msgpack-python
PyCrypto
PyYAML
pyzmq >= 2.1.9
## install requirements
(venv)$ pip install -r requirements.txt
(venv)$ python
>> import salt
>>
Success!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment