Created
June 30, 2012 18:41
-
-
Save baijum/3025019 to your computer and use it in GitHub Desktop.
Salt Development Environment
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
## 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