Skip to content

Commit f8732ce

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into stable for v2015.07.22 release
2 parents 1370165 + 93e566c commit f8732ce

File tree

4 files changed

+50
-23
lines changed

4 files changed

+50
-23
lines changed

AUTHORS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,5 @@ Vladimir Kozhukalov kozhukalov
7878
Whit Morriss whitmo [email protected]
7979
Wolodja Wentland babilen [email protected]
8080
Wout wfhg
81+
Yushi Nakai nyushi
8182
========================== ===================== ============================

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Version 2015.07.22:
2+
* Fix tornado installation in Ubuntu. Thanks Yushi Nakai. #627
3+
* Install tornado using pip on Ubuntu for Salt's v2015.8.xx onward stable releases.
4+
* Install requests on Ubuntu from Chris Lea's PPA. #630
5+
16
Version 2015.07.17:
27
* Make sure setuptools is installed before using it. #598.
38
* `systemd` is only fully supported from 15.04 onwards. #602

bootstrap-salt.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ If ([IntPtr]::Size -eq 4) {
100100
}
101101

102102
# Download minion setup file
103-
Write-Host "Downloading Salt minion installer Salt-Minion-$version-$arch-Setup.exe"
103+
Write-Host -NoNewline "Downloading Salt minion installer Salt-Minion-$version-$arch-Setup.exe"
104104
$webclient = New-Object System.Net.WebClient
105105
$url = "https://docs.saltstack.com/downloads/Salt-Minion-$version-$arch-Setup.exe"
106106
$file = "C:\tmp\salt.exe"
107107
$webclient.DownloadFile($url, $file)
108108

109109
# Install minion silently
110-
Write-Host "Installing Salt minion"
110+
Write-Host -NoNewline "Installing Salt minion"
111111
#Wait for process to exit before continuing.
112112
C:\tmp\salt.exe /S /minion-name=$minion /master=$master | Out-Null
113113

@@ -141,14 +141,14 @@ If($runservice) {
141141
# If the salt-minion service is still not running, something probably
142142
# went wrong and user intervention is required - report failure.
143143
If ($service.Status -eq "Stopped") {
144-
Write-Host "Failed to start salt minion"
144+
Write-Host -NoNewline "Failed to start salt minion"
145145
exit 1
146146
}
147147
}
148148
Else {
149-
Write-Host "Stopping salt minion and setting it to 'Manual'"
149+
Write-Host -NoNewline "Stopping salt minion and setting it to 'Manual'"
150150
Set-Service "salt-minion" -startupType "Manual"
151151
Stop-Service "salt-minion"
152152
}
153153

154-
Write-Host "Salt minion successfully installed"
154+
Write-Host -NoNewline "Salt minion successfully installed"

bootstrap-salt.sh

Lines changed: 39 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# CREATED: 10/15/2012 09:49:37 PM WEST
1818
#======================================================================================================================
1919
set -o nounset # Treat unset variables as an error
20-
__ScriptVersion="2015.07.17"
20+
__ScriptVersion="2015.07.22"
2121
__ScriptName="bootstrap-salt.sh"
2222

2323
#======================================================================================================================
@@ -426,8 +426,8 @@ elif [ "$ITYPE" = "stable" ]; then
426426
STABLE_REV="latest"
427427
else
428428
__check_unparsed_options "$*"
429-
if [ "$(echo "$1" | egrep '^(latest|1\.6|1\.7|2014\.1|2014\.7|2015\.5)$')" = "" ]; then
430-
echo "Unknown stable version: $1 (valid: 1.6, 1.7, 2014.1, 2014.7, 2015.5, latest)"
429+
if [ "$(echo "$1" | egrep '^(latest|1\.6|1\.7|2014\.1|2014\.7|2015\.5|2015\.8)$')" = "" ]; then
430+
echo "Unknown stable version: $1 (valid: 1.6, 1.7, 2014.1, 2014.7, 2015.5, 2015.8, latest)"
431431
exit 1
432432
else
433433
STABLE_REV="$1"
@@ -1758,39 +1758,50 @@ install_ubuntu_deps() {
17581758

17591759
__enable_universe_repository || return 1
17601760

1761+
__PIP_PACKAGES=""
1762+
17611763
# Minimal systems might not have upstart installed, install it
1762-
__apt_get_install_noinput upstart
1764+
__PACKAGES="upstart"
17631765

17641766
# Need python-apt for managing packages via Salt
1765-
__apt_get_install_noinput python-apt
1767+
__PACKAGES="${__PACKAGES} python-apt"
1768+
1769+
echoinfo "Installing Python Requests/Chardet from Chris Lea's PPA repository"
1770+
if [ "$DISTRO_MAJOR_VERSION" -gt 11 ] || ([ "$DISTRO_MAJOR_VERSION" -eq 11 ] && [ "$DISTRO_MINOR_VERSION" -gt 04 ]); then
1771+
# Above Ubuntu 11.04 add a -y flag
1772+
add-apt-repository -y "ppa:chris-lea/python-requests" || return 1
1773+
add-apt-repository -y "ppa:chris-lea/python-chardet" || return 1
1774+
else
1775+
add-apt-repository "ppa:chris-lea/python-requests" || return 1
1776+
add-apt-repository "ppa:chris-lea/python-chardet" || return 1
1777+
fi
1778+
1779+
__PACKAGES="${__PACKAGES} python-requests"
17661780

17671781
if [ "$DISTRO_MAJOR_VERSION" -gt 12 ] || ([ "$DISTRO_MAJOR_VERSION" -eq 12 ] && [ "$DISTRO_MINOR_VERSION" -gt 03 ]); then
17681782
if ([ "$DISTRO_MAJOR_VERSION" -lt 15 ] && [ "$_ENABLE_EXTERNAL_ZMQ_REPOS" -eq $BS_TRUE ]); then
17691783
echoinfo "Installing ZMQ>=4/PyZMQ>=14 from Chris Lea's PPA repository"
17701784
add-apt-repository -y ppa:chris-lea/zeromq || return 1
1771-
apt-get update
17721785
fi
1773-
__apt_get_install_noinput python-requests
1774-
__PIP_PACKAGES=""
1775-
else
1776-
check_pip_allowed "You need to allow pip based installations (-P) in order to install the python package 'requests'"
1777-
__apt_get_install_noinput python-setuptools python-pip
1778-
# shellcheck disable=SC2089
1779-
__PIP_PACKAGES="requests>=$_PY_REQUESTS_MIN_VERSION"
17801786
fi
17811787

17821788
# Additionally install procps and pciutils which allows for Docker boostraps. See 366#issuecomment-39666813
1783-
__apt_get_install_noinput procps pciutils || return 1
1789+
__PACKAGES="${__PACKAGES} procps pciutils"
1790+
17841791

17851792
if [ "$_INSTALL_CLOUD" -eq $BS_TRUE ]; then
17861793
check_pip_allowed "You need to allow pip based installations (-P) in order to install 'apache-libcloud'"
1787-
if [ "${__PIP_PACKAGES}" = "" ]; then
1788-
__apt_get_install_noinput python-pip
1794+
if [ "$(which pip)" = "" ]; then
1795+
__PACKAGES="${__PACKAGES} python-setuptools python-pip"
17891796
fi
17901797
# shellcheck disable=SC2089
17911798
__PIP_PACKAGES="${__PIP_PACKAGES} 'apache-libcloud>=$_LIBCLOUD_MIN_VERSION'"
17921799
fi
17931800

1801+
apt-get update
1802+
# shellcheck disable=SC2086,SC2090
1803+
__apt_get_install_noinput ${__PACKAGES} || return 1
1804+
17941805
if [ "${__PIP_PACKAGES}" != "" ]; then
17951806
# shellcheck disable=SC2086,SC2090
17961807
pip install -U ${__PIP_PACKAGES}
@@ -1828,6 +1839,16 @@ install_ubuntu_stable_deps() {
18281839
add-apt-repository "ppa:$STABLE_PPA" || return 1
18291840
fi
18301841

1842+
if [ ! "$(echo "$STABLE_REV" | egrep '^(2015\.8|latest)$')" = "" ]; then
1843+
# We need a recent tornado package
1844+
__REQUIRED_TORNADO="tornado >= 4.0"
1845+
check_pip_allowed "You need to allow pip based installations (-P) in order to install the python package '${__REQUIRED_TORNADO}'"
1846+
if [ "$(which pip)" = "" ]; then
1847+
__apt_get_install_noinput python-setuptools python-pip
1848+
fi
1849+
pip install -U "${__REQUIRED_TORNADO}"
1850+
fi
1851+
18311852
apt-get update
18321853
}
18331854

@@ -1874,7 +1895,7 @@ install_ubuntu_git_deps() {
18741895
if [ "$(which pip)" = "" ]; then
18751896
__apt_get_install_noinput python-setuptools python-pip
18761897
fi
1877-
pip install -U "'${__REQUIRED_TORNADO}'"
1898+
pip install -U "${__REQUIRED_TORNADO}"
18781899
fi
18791900
fi
18801901

@@ -4226,7 +4247,7 @@ install_smartos_git_deps() {
42264247
if [ "$(which pip)" = "" ]; then
42274248
pkgin -y install py27-pip
42284249
fi
4229-
pip install -U "'${__REQUIRED_TORNADO}'"
4250+
pip install -U "${__REQUIRED_TORNADO}"
42304251
fi
42314252
fi
42324253

0 commit comments

Comments
 (0)