I need to install the paramiko
module of python on multiple machines using the salt stack.
I looked at the documentation about how to do this, but was not able to understand the syntax.
Can someone please explain me line-by-line what happens in the following snippet:
python-pip:
pkg.installed
virtualenvwrapper:
pip.installed:
- require:
- pkg: python-pip
Also, can you add an example snippet for a recipe installing multiple python modules via pip using salt?
Best Answer
Another way to write the first part:
If you wanted to install multiple packages:
Alternatively, paramiko is in pip:
Also, to install multiple things from pip:
Remember, the docs are your friend, but they are not exhaustive, #salt on freenode irc is also a great place to ask.