Skip to content

Instantly share code, notes, and snippets.

Created July 10, 2015 19:37
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 anonymous/fb57ec2ffaa083a4a654 to your computer and use it in GitHub Desktop.
Save anonymous/fb57ec2ffaa083a4a654 to your computer and use it in GitHub Desktop.
{% if 1 == salt['cmd.retcode']('test -f /usr/local/bin/pip') %}
pip:
cmd.run:
- name: curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | python2.7
salt:
pip:
- name: salt
- find_links: /prod/sysadmin/darwin/software/salt/2015.5.2
- no_index: True
- installed
- require:
- file: /Library/LaunchDaemons/com.saltstack.salt.minion.plist
- cmd: pip
- cmd: command_line_tools
{% endif %}
{% if 1 == salt['cmd.retcode']('test -f /usr/bin/gcc') %}
command_line_tools:
cmd.run:
- name: installer -pkg /prod/sysadmin/darwin/software/xcode/6.3.1/Command\ Line\ Tools\ \(OS\ X\ 10.10\).pkg -target /
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment