How would you install a python module with chef?

John picture John · Nov 27, 2012 · Viewed 12.8k times · Source

We're using EngineYard which has Python installed by default. But when we enabled SSL we received the following error message from our logentries chef recipe.

"WARNING: The "ssl" module is not present. Using unreliable workaround, host identity cannot be verified. Please install "ssl" module or newer version of Python (2.6) if possible."

I'm looking for a way to install the SSL module with chef recipe but I simply don't have enough experience. Could someone point me in the right direction?

Resources: Logentries chef recipe: https://github.com/logentries/le_chef

Logentries EY docs: https://logentries.com/doc/engineyard/

SSL Module: http://pypi.python.org/pypi/ssl/

Answer

Nathan Buesgens picture Nathan Buesgens · Jul 18, 2014

There now appears to be a solution with better community support (based on the fact that it is documented on the opscode website).

You might try:

include_recipe 'python'
python_pip 'ssl'

As documented: here or here