Skip to content

Commit 6080a18

Browse files
committed
Merge pull request #530 from rallytime/merge_develop
Merge develop into stable
2 parents bcad396 + 76cc5bb commit 6080a18

File tree

4 files changed

+53
-7
lines changed

4 files changed

+53
-7
lines changed

AUTHORS.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@ Matthew Mead-Briggs mattmb
4242
Matthew Willson ixela
4343
Matthieu Guegan mguegan
4444
Mike Carlson m87carlson [email protected]
45+
Mike Place cachedout [email protected]
4546
nevins-b nevins-b
4647
Niels Abspoel aboe76
4748
Paul Brian lifeisstillgood [email protected]
4849
Pavel Snagovsky paha
4950
Pedro Algarvio s0undt3ch [email protected]
5051
Pedro Paulo pedropaulovc
52+
ptonelli ptonelli
5153
Raymond Barbiero visualphoenix
5254
Roberto Aguilar rca [email protected]
5355
Skyler Berg skylerberg [email protected]

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Version 2015.01.12:
2+
* Add package upgrades support to FreeBSD. Thanks William Eshagh(eshagl).
3+
* Make sure wget is installed on debian bare systems.
4+
* Make sure the Arch pacman database is up to date
5+
* Install `python-hashlib` in CentOS 5 in order to use the COPR repository
6+
17
Version 2014.12.11:
28
* Enable binary installations on CentOS 7. Thanks ggillies
39
* Updated the URL for EPEL 7

README.rst

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ install the `Salt`_ binaries using the appropriate methods.
1111

1212
.. Note::
1313

14-
This ``README`` file is not the absolute truth to what the bootstrap script is capable to do, for
14+
This ``README`` file is not the absolute truth to what the bootstrap script is capable of, for
1515
that, please read the generated help by passing ``-h`` to the script or even better, `read the
1616
source`_.
1717

@@ -86,6 +86,24 @@ have ``fetch`` available though:
8686
fetch -o install_salt.sh https://bootstrap.saltstack.com
8787
sudo sh install_salt.sh
8888
89+
If you have any SSL issues install ``ca_root_nssp``:
90+
91+
..code:: console
92+
93+
pkg install ca_root_nssp
94+
95+
And either copy the certificates to the place where fetch can find them:
96+
97+
..code:: console
98+
99+
cp /usr/local/share/certs/ca-root-nss.crt /etc/ssl/cert.pem
100+
101+
Or link them to the right place:
102+
103+
..code:: console
104+
105+
ln -s /usr/local/share/certs/ca-root-nss.crt /etc/ssl/cert.pem
106+
89107

90108
If all you want is to install a ``salt-master`` using latest git:
91109

bootstrap-salt.sh

Lines changed: 26 additions & 6 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="2014.12.11"
20+
__ScriptVersion="2015.01.12"
2121
__ScriptName="bootstrap-salt.sh"
2222

2323
#======================================================================================================================
@@ -1993,6 +1993,9 @@ install_debian_6_deps() {
19931993

19941994
apt-get update
19951995

1996+
# Make sure wget is available
1997+
__apt_get_install_noinput wget
1998+
19961999
# Install Keys
19972000
__apt_get_install_noinput debian-archive-keyring && apt-get update
19982001

@@ -2090,6 +2093,10 @@ install_debian_7_deps() {
20902093
export DEBIAN_FRONTEND=noninteractive
20912094

20922095
apt-get update
2096+
2097+
# Make sure wget is available
2098+
__apt_get_install_noinput wget
2099+
20932100
# Install Keys
20942101
__apt_get_install_noinput debian-archive-keyring && apt-get update
20952102

@@ -2577,6 +2584,7 @@ install_centos_stable_deps() {
25772584
__install_epel_repository || return 1
25782585

25792586
if [ "$_ENABLE_EXTERNAL_ZMQ_REPOS" -eq $BS_TRUE ]; then
2587+
yum -y install python-hashlib || return 1
25802588
__install_saltstack_copr_zeromq_repository || return 1
25812589
fi
25822590

@@ -2729,15 +2737,18 @@ install_centos_git_post() {
27292737
[ $fname = "api" ] && ([ "$_INSTALL_MASTER" -eq $BS_FALSE ] || [ "$(which salt-${fname} 2>/dev/null)" = "" ]) && continue
27302738
[ $fname = "syndic" ] && [ "$_INSTALL_SYNDIC" -eq $BS_FALSE ] && continue
27312739

2732-
if [ ! -f /usr/lib/systemd/system/salt-${fname}.service ] || ([ -f /usr/lib/systemd/system/salt-${fname}.service ] && [ $_FORCE_OVERWRITE -eq $BS_TRUE ]); then
2733-
copyfile "${__SALT_GIT_CHECKOUT_DIR}/pkg/rpm/salt-${fname}.service" /usr/lib/systemd/system/
2740+
if [ -f /bin/systemctl ]; then
2741+
if [ ! -f /usr/lib/systemd/system/salt-${fname}.service ] || ([ -f /usr/lib/systemd/system/salt-${fname}.service ] && [ $_FORCE_OVERWRITE -eq $BS_TRUE ]); then
2742+
copyfile "${__SALT_GIT_CHECKOUT_DIR}/pkg/rpm/salt-${fname}.service" /usr/lib/systemd/system/
2743+
fi
27342744

27352745
# Skip salt-api since the service should be opt-in and not necessarily started on boot
27362746
[ $fname = "api" ] && continue
27372747

27382748
/bin/systemctl enable salt-${fname}.service
27392749
SYSTEMD_RELOAD=$BS_TRUE
2740-
elif [ ! -f /usr/lib/systemd/system/salt-${fname}.service ] && [ ! -f /etc/init.d/salt-$fname ] || ([ -f /etc/init.d/salt-$fname ] && [ $_FORCE_OVERWRITE -eq $BS_TRUE ]); then
2750+
2751+
elif [ ! -f /etc/init.d/salt-$fname ] || ([ -f /etc/init.d/salt-$fname ] && [ $_FORCE_OVERWRITE -eq $BS_TRUE ]); then
27412752
copyfile "${__SALT_GIT_CHECKOUT_DIR}/pkg/rpm/salt-${fname}" /etc/init.d/
27422753
chmod +x /etc/init.d/salt-${fname}
27432754

@@ -3373,6 +3384,12 @@ install_arch_linux_stable_deps() {
33733384
pacman-key --init && pacman-key --populate archlinux || return 1
33743385
fi
33753386

3387+
pacman -Sy --noconfirm --needed pacman || return 1
3388+
3389+
if [ "$(which pacman-db-upgrade)" != "" ]; then
3390+
pacman-db-upgrade || return 1
3391+
fi
3392+
33763393
if [ "$_UPGRADE_SYS" -eq $BS_TRUE ]; then
33773394
pacman -Syyu --noconfirm --needed || return 1
33783395
fi
@@ -3392,9 +3409,8 @@ install_arch_linux_stable_deps() {
33923409
install_arch_linux_git_deps() {
33933410
install_arch_linux_stable_deps
33943411

3395-
pacman -Sy --noconfirm --needed pacman || return 1
33963412
# Don't fail if un-installing python2-distribute threw an error
3397-
pacman -R --noconfirm --needed python2-distribute
3413+
pacman -R --noconfirm python2-distribute
33983414
pacman -Sy --noconfirm --needed git python2-crypto python2-setuptools python2-jinja \
33993415
python2-m2crypto python2-markupsafe python2-msgpack python2-psutil python2-yaml \
34003416
python2-pyzmq zeromq python2-requests python2-systemd || return 1
@@ -3623,6 +3639,10 @@ install_freebsd_9_stable_deps() {
36233639
/usr/local/sbin/pkg install ${SALT_PKG_FLAGS} -y ${_EXTRA_PACKAGES} || return 1
36243640
fi
36253641

3642+
if [ "$_UPGRADE_SYS" -eq $BS_TRUE ]; then
3643+
pkg upgrade -y || return 1
3644+
fi
3645+
36263646
return 0
36273647
}
36283648

0 commit comments

Comments
 (0)