1818# ======================================================================================================================
1919set -o nounset # Treat unset variables as an error
2020
21- __ScriptVersion=" 2018.08.13 "
21+ __ScriptVersion=" 2018.08.15 "
2222__ScriptName=" bootstrap-salt.sh"
2323
2424__ScriptFullName=" $0 "
@@ -3140,7 +3140,7 @@ install_debian_8_git_deps() {
31403140
31413141 __PACKAGES=" libzmq3 libzmq3-dev lsb-release python-apt python-crypto python-jinja2"
31423142 __PACKAGES=" ${__PACKAGES} python-m2crypto python-msgpack python-requests python-systemd"
3143- __PACKAGES=" ${__PACKAGES} python-yaml python-zmq"
3143+ __PACKAGES=" ${__PACKAGES} python-yaml python-zmq python-concurrent.futures "
31443144
31453145 if [ " $_INSTALL_CLOUD " -eq $BS_TRUE ]; then
31463146 # Install python-libcloud if asked to
@@ -3211,7 +3211,7 @@ install_debian_9_git_deps() {
32113211 PY_PKG_VER=" "
32123212
32133213 # These packages are PY2-ONLY
3214- __PACKAGES=" ${__PACKAGES} python-backports-abc python-m2crypto"
3214+ __PACKAGES=" ${__PACKAGES} python-backports-abc python-m2crypto python-concurrent.futures "
32153215 fi
32163216
32173217 __PACKAGES=" ${__PACKAGES} python${PY_PKG_VER} -apt python${PY_PKG_VER} -crypto python${PY_PKG_VER} -jinja2"
@@ -3429,7 +3429,7 @@ install_fedora_deps() {
34293429 fi
34303430 fi
34313431
3432- __PACKAGES=" ${__PACKAGES} dnf-utils libyaml python${PY_PKG_VER} -crypto python${PY_PKG_VER} -jinja2"
3432+ __PACKAGES=" ${__PACKAGES} procps-ng dnf-utils libyaml python${PY_PKG_VER} -crypto python${PY_PKG_VER} -jinja2"
34333433 __PACKAGES=" ${__PACKAGES} python${PY_PKG_VER} -msgpack python${PY_PKG_VER} -requests python${PY_PKG_VER} -zmq"
34343434
34353435 # shellcheck disable=SC2086
@@ -3800,7 +3800,7 @@ install_centos_git_deps() {
38003800 fi
38013801 fi
38023802
3803- __PACKAGES=" python${PY_PKG_VER} -crypto python${PY_PKG_VER} -jinja2"
3803+ __PACKAGES=" ${__PACKAGES} python${PY_PKG_VER} -crypto python${PY_PKG_VER} -jinja2"
38043804 __PACKAGES=" ${__PACKAGES} python${PY_PKG_VER} -msgpack python${PY_PKG_VER} -requests"
38053805 __PACKAGES=" ${__PACKAGES} python${PY_PKG_VER} -tornado python${PY_PKG_VER} -zmq"
38063806
@@ -3815,7 +3815,7 @@ install_centos_git_deps() {
38153815
38163816 if [ " ${_PY_EXE} " != " " ] && [ " $_PIP_ALLOWED " -eq " $BS_TRUE " ]; then
38173817 # If "-x" is defined, install dependencies with pip based on the Python version given.
3818- _PIP_PACKAGES=" m2crypto jinja2 msgpack-python pycrypto PyYAML tornado<5.0 zmq"
3818+ _PIP_PACKAGES=" m2crypto jinja2 msgpack-python pycrypto PyYAML tornado<5.0 zmq futures>=2.0 "
38193819
38203820 # install swig and openssl on cent6
38213821 if [ " $DISTRO_MAJOR_VERSION " -eq 6 ]; then
@@ -4608,6 +4608,7 @@ _eof
46084608 # which is already installed
46094609 __PACKAGES=" m2crypto ${pkg_append} -crypto ${pkg_append} -jinja2 ${pkg_append} -PyYAML"
46104610 __PACKAGES=" ${__PACKAGES} ${pkg_append} -msgpack ${pkg_append} -requests ${pkg_append} -zmq"
4611+ __PACKAGES=" ${__PACKAGES} ${pkg_append} -futures"
46114612
46124613 # shellcheck disable=SC2086
46134614 __yum_install_noinput ${__PACKAGES} || return 1
@@ -4627,6 +4628,9 @@ install_amazon_linux_ami_git_deps() {
46274628 PIP_EXE=' pip'
46284629 if __check_command_exists python2.7; then
46294630 if ! __check_command_exists pip2.7; then
4631+ if ! __check_command_exists easy_install-2.7; then
4632+ __yum_install_noinput python27-setuptools
4633+ fi
46304634 /usr/bin/easy_install-2.7 pip || return 1
46314635 fi
46324636 PIP_EXE=' /usr/local/bin/pip2.7'
@@ -4646,7 +4650,7 @@ install_amazon_linux_ami_git_deps() {
46464650
46474651 if [ " $_INSTALL_CLOUD " -eq $BS_TRUE ]; then
46484652 __check_pip_allowed " You need to allow pip based installations (-P) in order to install apache-libcloud"
4649- __PACKAGES=" ${__PACKAGES} python -pip"
4653+ __PACKAGES=" ${__PACKAGES} python27 -pip"
46504654 __PIP_PACKAGES=" ${__PIP_PACKAGES} apache-libcloud>=$_LIBCLOUD_MIN_VERSION "
46514655 fi
46524656
@@ -4795,7 +4799,7 @@ install_arch_linux_stable() {
47954799 pacman -S --noconfirm --needed bash || return 1
47964800 pacman -Su --noconfirm || return 1
47974801 # We can now resume regular salt update
4798- pacman -Syu --noconfirm salt || return 1
4802+ pacman -Syu --noconfirm salt python2-futures || return 1
47994803 return 0
48004804}
48014805
@@ -5649,7 +5653,7 @@ install_opensuse_git_deps() {
56495653
56505654 __git_clone_and_checkout || return 1
56515655
5652- __PACKAGES=" libzmq5 python-Jinja2 python-m2crypto python-msgpack-python python-pycrypto python-pyzmq python-xml"
5656+ __PACKAGES=" libzmq5 python-Jinja2 python-m2crypto python-msgpack-python python-pycrypto python-pyzmq python-xml python-futures "
56535657
56545658 if [ -f " ${_SALT_GIT_CHECKOUT_DIR} /requirements/base.txt" ]; then
56555659 # We're on the develop branch, install whichever tornado is on the requirements file
0 commit comments