python-pip: # The name of the package this state installs, this must be unique in your salt states pkg.installed # The state (pkg) and action (installed) virtualenvwrapper: # The name of the package pip.installed: # The state (pip) and action (installed) - require: # Require means only install this if the following is already installed - pkg: python-pip # pkg python-pip which is mentioned earlier
Another way to write the first part:
instaled python pip: pkg.installed: - name: python-pip
If you wanted to install multiple packages:
installed python pip, paramiko and complete: pkg.installed: - pkgs: - python-pip - python-complete - python-paramiko
Alternatively, paramiko is in pip:
paramiko: pip.installed
Also, to install multiple things from pip:
install lots from pip: pip.installed: - names: - paramiko - boto3 - pycurl
Remember, the docs are your friend, but they are not exhaustive, #salt on freenode irc is also a great place to ask.