So I have a good friend who has been playing with Salt Stack for quite some time, and as I have done Puppet in the past (albeit it’s been a while), I decided I would give Salt a run for it’s money. So I went to the Ubuntu installation docs and followed the directions. Everything appeared ok, but when trying to run salt I was getting the following error:
ImportError: /usr/local/lib/python2.7/dist-packages/M2Crypto-0.21.1-py2.7-linux x86_64.egg/M2Crypto/__m2crypto.so: undefined symbol: SSLv2_method
So I tracked down the issue to Salt’s GitHub. Now to be honest I am not entirely sure how M2Crypto got installed, figure it was a dependency of something I pip / easy_install’d, but what I did to fix was to go to /usr/local/lib/python2.7/dist-packages and removed the M2Crypto egg.
sudo rm -rf /usr/local/lib/python2.7/dist-packages/M2Crypto-0.21.1-py2.7-linux-x86_64.egg/ and then ran the following: sudo apt-get install python-m2crypto
And that seemed to do the trick (as mentioned on the GitHub page, the packaged version of python-m2crypto seems to work fine), so at least now I have salt-master on a host, salt-minion on a host and they can now talk.