Skip to content

Instantly share code, notes, and snippets.

@brianz brianz/getpip.sls
Created Jul 30, 2014

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

gravyboat commented Jul 30, 2014

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
You can’t perform that action at this time.