Created
August 28, 2013 16:27
-
-
Save renoirb/6368030 to your computer and use it in GitHub Desktop.
Installing Composer using Salt Stack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing.
What can I do in my state files to have composer installed like regular packages (when a run 'highstate')