Skip to content

Instantly share code, notes, and snippets.

@austinpapp
Last active December 20, 2016 02:21
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 austinpapp/73d367b87363d9be505d6e757bfbc322 to your computer and use it in GitHub Desktop.
Save austinpapp/73d367b87363d9be505d6e757bfbc322 to your computer and use it in GitHub Desktop.
ID: get-pip
Function: file.managed
Name: /tmp/get-pip.py
Result: True
Comment: unless execution succeeded
Started: 21:06:01.890989
Duration: 917.375 ms
Changes:
----------
ID: get-pip
Function: cmd.run
Name: python /tmp/get-pip.py
Result: False
Comment: Command "python /tmp/get-pip.py" run
Started: 21:06:02.808955
Duration: 15.451 ms
Changes:
----------
pid:
9679
retcode:
2
stderr:
python: can't open file '/tmp/get-pip.py': [Errno 2] No such file or directory
get-pip:
file.managed:
- name: /tmp/get-pip.py
- source: http://internally-hosted.com/pip/get-pip.py
- mode: 755
- skip_verify: True
- unless:
- which pip
cmd.run:
- name: python /tmp/get-pip.py
- require:
- file: /tmp/get-pip.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment