From 511fac8162ed7fad5372540f37fb3115a3bc3a9c Mon Sep 17 00:00:00 2001 From: Adam Bolte Date: Thu, 26 Oct 2017 13:41:40 +1100 Subject: [PATCH] Attempt fetching salt bootstrap script with wget On Debian installations, wget is installed even into the most minimal environment. Even Python support on Debian cannot be guaranteed if Standard System Utilities was not selected at installation time (or if debootstrap was used), which is why the retrieved bootstrap-salt.sh script takes care of installing it prior to installing Salt. --- plugins/provisioners/salt/bootstrap-salt.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/provisioners/salt/bootstrap-salt.sh b/plugins/provisioners/salt/bootstrap-salt.sh index 082ec0101..410acc24c 100755 --- a/plugins/provisioners/salt/bootstrap-salt.sh +++ b/plugins/provisioners/salt/bootstrap-salt.sh @@ -5,6 +5,8 @@ if [ -x /usr/bin/fetch ]; then /usr/bin/fetch -o bootstrap-salt.sh https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh elif [ -x /usr/bin/curl ]; then /usr/bin/curl -L -O https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh +elif [ -x /usr/bin/wget ]; then + /usr/bin/wget -O bootstrap-salt.sh https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh else python -c 'import urllib; urllib.urlretrieve("https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh", "bootstrap-salt.sh")' fi