Update Vagrant setup to Debian Buster and Python 3
This commit is contained in:
parent
4ef03f141c
commit
b54b8577cb
3 changed files with 12 additions and 7 deletions
|
@ -1,19 +1,21 @@
|
|||
#!/bin/sh -
|
||||
|
||||
apt-get update
|
||||
apt-get install -y python-cryptography
|
||||
apt-get install -y python3-cryptography
|
||||
|
||||
export salt_bootstrap_url=https://bootstrap.saltstack.com/
|
||||
|
||||
# We just download the bootstrap script by default and execute that.
|
||||
if [ -x /usr/bin/fetch ]; then
|
||||
/usr/bin/fetch -o - https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh | sh -s -- "$@"
|
||||
/usr/bin/fetch -o - $salt_bootstrap_url | sh -s -- "$@"
|
||||
elif [ -x /usr/bin/curl ]; then
|
||||
/usr/bin/curl -L https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh | sh -s -- "$@"
|
||||
/usr/bin/curl -L $salt_bootstrap_url | sh -s -- "$@"
|
||||
else
|
||||
python \
|
||||
-c 'import urllib; print urllib.urlopen("https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh").read()' \
|
||||
| sh -s -- "$@"
|
||||
python3 -c "from urllib.request import urlopen; print(urlopen(\"$salt_bootstrap_url\").read().decode('utf-8'))" | sh -s -- "$@"
|
||||
fi
|
||||
|
||||
mkdir -p /etc/salt
|
||||
|
||||
cat >/etc/salt/minion <<EOF
|
||||
file_client: local
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue