Hi,
I predominantly run Debian Squeeze on my servers and am trying to make my own packages with a stable version of pyzmq. I know there is work being done on a saltstack debian repo, but I've basically had my fill of 0mq communication issues and want to use salt to it's full potential today. My current approach is to install salt into a virtualenv and package it up using fpm. My steps are as follows:
cd /usr/src
mkdir /usr/local/salt-0.14.0-437-g0dc0e12
virtualenv /usr/local/salt-0.14.0-437-g0dc0e12
source /usr/local/salt-0.14.0-437-g0dc0e12/bin/activate
pip install M2Crypto && pip install pyzmq PyYAML pycrypto msgpack-python jinja2 psutil
pip install -e salt
I verify all of the pkgs are installed and whatnot, then package it up using fpm eg
fpm -s dir -t deb -n "salt-master" -v 0.14.0-437-g0dc0e12 /usr/local/salt-0.14.0-437-g0dc0e12/ /etc/init.d/salt-master # the init script was already in place
I install the deb on my build server, verify that it runs/works, toss it into my repo and install it on my salt master. i've verified that all of the files are in place and whatnot, and that python2.6 is installed.
however, when i run it, i get this:
/etc/init.d/salt-master start
Starting salt-master daemon: :Traceback (most recent call last):
File "/usr/local/salt-0.14.0-437-g0dc0e12/bin/salt-master", line 5, in <module>
from pkg_resources import load_entry_point
File "build/bdist.linux-i686/egg/pkg_resources.py", line 2603, in <module>
File "build/bdist.linux-i686/egg/pkg_resources.py", line 666, in require
File "build/bdist.linux-i686/egg/pkg_resources.py", line 565, in resolve
pkg_resources.DistributionNotFound: salt==0.14.0-437-g0dc0e12
failed!
i've also tried activating the virtualenv, and running it like this:
/usr/local/salt-0.14.0-437-g0dc0e12/bin# ./python ./salt-master
Traceback (most recent call last):
File "./salt-master", line 5, in <module>
from pkg_resources import load_entry_point
File "build/bdist.linux-i686/egg/pkg_resources.py", line 2603, in <module>
File "build/bdist.linux-i686/egg/pkg_resources.py", line 666, in require
File "build/bdist.linux-i686/egg/pkg_resources.py", line 565, in resolve
pkg_resources.DistributionNotFound: salt==0.14.0-437-g0dc0e12
same with simply rsync'ing the directory over and taking fpm out of the equation. i'm somehow not encapsulating the virtualenv properly. i basically want all of the requirements baked into the virtualenv, with minimal dependencies on my system stuff/site-packages. am I missing something obvious?
thanks in advance