Skip to content

Instantly share code, notes, and snippets.

@renoirb
Created August 28, 2013 16:27
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renoirb/6368030 to your computer and use it in GitHub Desktop.
Save renoirb/6368030 to your computer and use it in GitHub Desktop.
Installing Composer using Salt Stack
get-composer:
cmd.run:
- name: 'CURL=`which curl`; $CURL -sS https://getcomposer.org/installer | php'
- unless: test -f /usr/local/bin/composer
- cwd: /root/
install-composer:
cmd.wait:
- name: mv /root/composer.phar /usr/local/bin/composer
- cwd: /root/
- watch:
- cmd: get-composer
@seydu
Copy link

seydu commented Oct 31, 2014

Thanks for sharing.
What can I do in my state files to have composer installed like regular packages (when a run 'highstate')

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