vagrant/plugins/provisioners/salt/bootstrap-salt.sh

13 lines
421 B
Bash
Raw Normal View History

2013-04-18 12:41:34 +00:00
#!/bin/sh -
# We just download the bootstrap script by default and execute that.
if [ -x /usr/bin/fetch ]; then
/usr/bin/fetch -o - http://bootstrap.saltstack.org | sh -s -- "$@"
elif [ -x /usr/bin/curl ]; then
/usr/bin/curl -L http://bootstrap.saltstack.org | sh -s -- "$@"
else
python \
-c 'import urllib; print urllib.urlopen("http://bootstrap.saltstack.org").read()' \
| sh -s -- "$@"
fi