Skip to content

Instantly share code, notes, and snippets.

@brianz
Created July 30, 2014 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianz/82e85ea94a6dcc235d7b to your computer and use it in GitHub Desktop.
Save brianz/82e85ea94a6dcc235d7b to your computer and use it in GitHub Desktop.
Salt sls for installing pip via get-pip.py
get-pip:
file.managed:
- name: /usr/local/sbin/get-pip.py
- source: https://raw.githubusercontent.com/pypa/pip/1.5.6/contrib/get-pip.py
- source_hash: md5=3f120892a637a59a9c497d516eb2ca76
cmd.run:
- name: /usr/bin/python /usr/local/sbin/get-pip.py
- unless: which pip
- require:
- file: /usr/local/sbin/get-pip.py
python-pkgs:
pkg:
- installed
- names:
- python-devel
@gravyboat
Copy link

other_file.sls:

include:
  - pip.getpip

pip_conf:
  file:
    - managed
    - name: /path/to/conf
    - source: salt://pip/files/conf
    - require:
      - sls: pip.getpip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment