mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
commit
b9fea9a828
4 changed files with 60 additions and 58 deletions
|
@ -79,7 +79,7 @@ Jasper Lievisse Adriaanse jasperla jasper@humppa.nl
|
|||
JD decomposite
|
||||
Jeff Hui jeffh jeff@jeffhui.net
|
||||
Jeff Strunk jstrunk
|
||||
Jorge Schrauwen sjorge
|
||||
Jorge Schrauwen sjorge sjorge@blackdot.be
|
||||
Juan A. Moyano wincus wincus.public@gmail.com
|
||||
Justin Anderson justinta justin.ta@outlook.com
|
||||
Justin Findlay jfindlay jfindlay@gmail.com
|
||||
|
|
112
ChangeLog
112
ChangeLog
|
@ -1,4 +1,6 @@
|
|||
Version TBD (In Progress on the Develop Branch):
|
||||
|
||||
Version 2019.01.08:
|
||||
* use official amazon linux 2 repo for amazon linux 2 (mchugh19) #1287
|
||||
* Add release info to applicable docs (rallytime) #1292
|
||||
* Modify wait_for_apt function (ripesensor) #1291
|
||||
|
@ -15,7 +17,7 @@ Version 2018.08.13:
|
|||
* Handle commented lines in the requirements files for pip pkgs (rallytime) #1271
|
||||
* Remove typo: extra 'c' was accidentally added in #1269 (rallytime) #1270
|
||||
* [Arch] Add python2-futures to list of pkgs on git install (rallytime) #1269
|
||||
* Fix undefined variable warn_msg on amd64 (alexandruavadanii) #1268
|
||||
* Fix undefined variable warn_msg on amd64 (alexandruavadanii) #1268
|
||||
* SLES12SP changed packages git to git-core and libzmq3 to libzmq4 (mfapouw) #1266
|
||||
* Add opensuse 15 specific installation functions (rallytime) #1263
|
||||
* Remove support for openSUSE Leap 42.2 (rallytime) #1262
|
||||
|
@ -359,10 +361,10 @@ Version 2015.05.04:
|
|||
* Add Debian 8 support. Thanks Matt Black(mafrosis)
|
||||
* Improve Debian version parsing. Thanks Mark Lee(malept)
|
||||
* Make sure we update packages list one Chris Lea's PPA repository is added.
|
||||
* Hard code the Debian Squeeze backports to the DE mirror since the main repository is down.
|
||||
* Hard code the Debian Squeeze backports to the DE mirror since the main repository is down.
|
||||
Thanks @panticz. #589.
|
||||
* Only install git if not already installed. #560
|
||||
* Fix openSUSE 13.2 where we need to pass --replaceflags. Thanks Roman Inflianskas(rominf).
|
||||
* Fix openSUSE 13.2 where we need to pass --replaceflags. Thanks Roman Inflianskas(rominf).
|
||||
#504.
|
||||
* Make sure that a recent enough requests package is installed in Debian/Ubuntu.
|
||||
* Install tornado on git installs for the develop branch if necessary. #580
|
||||
|
@ -378,11 +380,11 @@ Version 2015.02.28:
|
|||
* Fix Debian backports repository.
|
||||
|
||||
Version 2015.02.27:
|
||||
* Try other tools besides wget when downloading the COPR repo file. Thanks Ronald van
|
||||
* Try other tools besides wget when downloading the COPR repo file. Thanks Ronald van
|
||||
Zantvoort(The-Loeki)
|
||||
* No need to install packages from the Unstable repository for debian, use backports. Thanks
|
||||
* No need to install packages from the Unstable repository for debian, use backports. Thanks
|
||||
Ari Aosved(devaos)
|
||||
* Fix an issue in CentOS where the syndic package wasn't being installed(since it's now a
|
||||
* Fix an issue in CentOS where the syndic package wasn't being installed(since it's now a
|
||||
separate package). Thanks Ronald van Zantvoort(The-Loeki)
|
||||
* Enable the server-optionals repository for RHEL >= 7
|
||||
* RHEL/CentOS 5 now uses the COPR repository. #533
|
||||
|
@ -430,33 +432,33 @@ Version 2014.09.09:
|
|||
* Complete `salt-api` services checking. #450
|
||||
|
||||
Version 2014.08.30:
|
||||
* Skip service checks for `salt-api`, since this should be an opt-in service not necessarily
|
||||
* Skip service checks for `salt-api`, since this should be an opt-in service not necessarily
|
||||
meant to start at boot time.
|
||||
* Distro Support Fixes:
|
||||
* Also install the salt-api service on RHEL based distributions for git based
|
||||
* Also install the salt-api service on RHEL based distributions for git based
|
||||
installations.
|
||||
* Properly detect Arch Linux when lsb-release is available
|
||||
* Updated the URL for EPEL 7
|
||||
|
||||
Version 2014.08.23:
|
||||
* Avoid redirect breakage when installing EPEL with rpm on RHEL 5
|
||||
* Ensure python-apt is installed by the bootstrap script for Debian & Ubuntu minions. Thanks
|
||||
* Ensure python-apt is installed by the bootstrap script for Debian & Ubuntu minions. Thanks
|
||||
@garethgreenaway.
|
||||
* Don't shallow clone on git versions lower than 1.7.10
|
||||
* Only shallow clone on git tag based installations
|
||||
* Configurable Salt repository clone directory for git based installations
|
||||
* Distro Support Fixed:
|
||||
* Fixed the URL to download EPEL for Cent 5
|
||||
* Use the full path to the `chkconfig` binary when checking for services in SysV init
|
||||
* Use the full path to the `chkconfig` binary when checking for services in SysV init
|
||||
systems.
|
||||
* Fixed an issue where the default sleep period(3 secs) on Ubuntu would cause a race
|
||||
condition with upstart wherein the package installation would call an upstart start and
|
||||
before it could complete, bootstrap would call another. The result was *two* copies of salt
|
||||
running which ended up causing a most stubborn bug that's documented in
|
||||
* Fixed an issue where the default sleep period(3 secs) on Ubuntu would cause a race
|
||||
condition with upstart wherein the package installation would call an upstart start and
|
||||
before it could complete, bootstrap would call another. The result was *two* copies of salt
|
||||
running which ended up causing a most stubborn bug that's documented in
|
||||
https://github.com/saltstack/salt/issues/12248
|
||||
|
||||
Version 2014.07.29:
|
||||
* Shallow clone Salt's repository for speed improvements. In case of failure, resume old
|
||||
* Shallow clone Salt's repository for speed improvements. In case of failure, resume old
|
||||
behaviour.
|
||||
* Fixed bug introduced in 0577622 when salt-api service install and checks were added
|
||||
* Distro Support Fixed:
|
||||
|
@ -465,7 +467,7 @@ Version 2014.07.29:
|
|||
Version 2014.07.27:
|
||||
* Amazon Linux AMI 2010.xx is not explicitly not supported.
|
||||
* Install the `salt-api` scripts if available when the `salt-master` is also installed.
|
||||
* Added support for a configurable sleep time when starting, restarting and checking for
|
||||
* Added support for a configurable sleep time when starting, restarting and checking for
|
||||
enabled services.
|
||||
* Drop the `tsflags` requirement for RHEL and RHEL based distributions.
|
||||
* When sorting release files, oracle-release has higher priority than redhat-release.
|
||||
|
@ -476,10 +478,10 @@ Version 2014.07.27:
|
|||
* CentOS 7 now uses systemd and the script now properly handles it
|
||||
* systemd in openSUSE 12.2 complains if service does not contain `.service``
|
||||
* Properly detect openSUSE using `lsb_release
|
||||
* SLES 11 SP3 ships with both python-M2Crypto-0.22.* and python-m2crypto-0.21 and we will
|
||||
be asked which we want to install, even with --non-interactive. Let's try to install the
|
||||
* SLES 11 SP3 ships with both python-M2Crypto-0.22.* and python-m2crypto-0.21 and we will
|
||||
be asked which we want to install, even with --non-interactive. Let's try to install the
|
||||
higher version first and then the lower one in case of failure.
|
||||
* Allow some extra time on RHEL for the optionals repo check in case the repository
|
||||
* Allow some extra time on RHEL for the optionals repo check in case the repository
|
||||
subscription is being managed externally.
|
||||
|
||||
Version 2014.06.30:
|
||||
|
@ -500,7 +502,7 @@ Version 2014.06.21:
|
|||
|
||||
Version 2014.06.19:
|
||||
* Allow passing the master address as an environment variable, `BS_SALT_MASTER_ADDRESS`
|
||||
* Fixed an issue with the keys pre-seed. We were passing absolute paths where we only needed
|
||||
* Fixed an issue with the keys pre-seed. We were passing absolute paths where we only needed
|
||||
basenames.
|
||||
* Added HTTP proxy configuration support. Thanks Giuseppe Iannello(gianello),
|
||||
* Distro Support Added:
|
||||
|
@ -513,14 +515,14 @@ Version 2014.06.19:
|
|||
Version 2014.04.16:
|
||||
* Fixed a bug for RHEL 6 based distributions where yum-utils was not getting installed.
|
||||
* Added minor version check for RHEL 6 optional channel.
|
||||
* Added quotes around "apache-libcloud>=$_LIBCLOUD_MIN_VERSION" for proper version requirements
|
||||
* Added quotes around "apache-libcloud>=$_LIBCLOUD_MIN_VERSION" for proper version requirements
|
||||
handling.
|
||||
* Install the python 'requests' package which is now a hard dependency in Salt.
|
||||
* When installing from a user defined repository add the official one as a remote and fetch
|
||||
* When installing from a user defined repository add the official one as a remote and fetch
|
||||
its tags for proper versioning.
|
||||
* Distro Support Fixed:
|
||||
* CentOS netinstall ISO's don't install `chkconfig`
|
||||
* Improved RHEL optional repository detection. This allows user repository usage, which
|
||||
* Improved RHEL optional repository detection. This allows user repository usage, which
|
||||
don't need the optional repository support since they usually provide their packages.
|
||||
* Distro Support Added:
|
||||
* Oracle Linux
|
||||
|
@ -531,7 +533,7 @@ Version 2014.03.10-1:
|
|||
* Fix the Debian services running function
|
||||
|
||||
Version 2014.03.10:
|
||||
* Debian based distributions which don't use upstart now also check if the salt services are
|
||||
* Debian based distributions which don't use upstart now also check if the salt services are
|
||||
enabled.
|
||||
* Distro Support Fixed:
|
||||
* RedHat based distributions now have a proper services enabled checker.
|
||||
|
@ -550,25 +552,25 @@ Version 2014.02.19:
|
|||
* Fixed Fedora Git based installations(git was not being installed)
|
||||
|
||||
Version 2014.02.18:
|
||||
* Debian based distribution now get a warning stating that NOT starting daemons does not work
|
||||
* Debian based distribution now get a warning stating that NOT starting daemons does not work
|
||||
as supposed, mainly because that's the Debian policy.
|
||||
* Fix bug introduced when implementing the master ip flag. The default minion includes
|
||||
* Fix bug introduced when implementing the master ip flag. The default minion includes
|
||||
directory is `minion.d`, not `minion.conf.d`
|
||||
|
||||
Version 2014.02.16:
|
||||
* The script now allows setting up the salt-master address as a separate configuration file by
|
||||
* The script now allows setting up the salt-master address as a separate configuration file by
|
||||
passing `-A` to the script.
|
||||
* Add support to install apache-libcloud by passing the `-L` flag. In some distribution it's
|
||||
also needed to pass `-P` because the minimal apache-libcloud version is `0.14.0`. This support
|
||||
* Add support to install apache-libcloud by passing the `-L` flag. In some distribution it's
|
||||
also needed to pass `-P` because the minimal apache-libcloud version is `0.14.0`. This support
|
||||
is still missing for FreeBSD and SmartOS.
|
||||
* Fixed an issue when copying or moving files. We now test to see if the destination is a
|
||||
directory and create a full path from that so that the "do not override" logic works as
|
||||
* Fixed an issue when copying or moving files. We now test to see if the destination is a
|
||||
directory and create a full path from that so that the "do not override" logic works as
|
||||
supposed. #294.
|
||||
* Allow passing additional package names to install while installing Salt's dependencies. #262
|
||||
* Pass the salt configuration directory, default or from environment variable to the setup.py
|
||||
* Pass the salt configuration directory, default or from environment variable to the setup.py
|
||||
script for git based installations. #305
|
||||
* Distro Support Fixed:
|
||||
* FreeBSD `fetch` now has a notion of insecure certificates. Handle this properly. Thank
|
||||
* FreeBSD `fetch` now has a notion of insecure certificates. Handle this properly. Thank
|
||||
You Mike Carlson(m87carlson).
|
||||
* Arch, openSUSE and SuSE are now upgradable when the `-U` flag is passed.
|
||||
* Force overwrites now works for existing init.d scripts on CentOS git installations. #259
|
||||
|
@ -583,7 +585,7 @@ Version 1.5.10:
|
|||
* Salt no longer has the master branch in git, install from develop as default.
|
||||
* Installing from Git on Red Hat based distributions now also needs `yum-utils` installed.
|
||||
* Allow the script to use a different git repository to install from.
|
||||
* Fixed a bug where a branch name with dashes would be wrongly detected as an option to the
|
||||
* Fixed a bug where a branch name with dashes would be wrongly detected as an option to the
|
||||
script.
|
||||
* Default to secure file downloads(if any).
|
||||
* Distro Support Fixed:
|
||||
|
@ -594,23 +596,23 @@ Version 1.5.9:
|
|||
* Allow to not start the daemons after bootstrapping salt. This will allow `vagrant-lxc`
|
||||
installations, `debootstrap*`, etc, to finish properly. Thanks Henrik Holmboe (holmboe).
|
||||
* Distro Support Fixed:
|
||||
* Salt >= 0.17 requires ElementTree which is on the python standard library after python
|
||||
* Salt >= 0.17 requires ElementTree which is on the python standard library after python
|
||||
2.6 but openSUSE split that into a separate package.
|
||||
* Fixed a logic preventing proper Ubuntu bootstrapping on some situations.
|
||||
|
||||
Version 1.5.8:
|
||||
* Fixed an Ubuntu regression. `add-apt-repository` is only available on
|
||||
* Fixed an Ubuntu regression. `add-apt-repository` is only available on
|
||||
`software-properties-common` after 12.10, inclusive. Thanks Diego Woitasen(diegows)
|
||||
|
||||
Version 1.5.7:
|
||||
* For RedHat based distributions which rely on `epel`, the user can now pass `testing` to the
|
||||
* For RedHat based distributions which rely on `epel`, the user can now pass `testing` to the
|
||||
script and `epel-testing` shall be used to bootstrap salt and it's dependencies.
|
||||
* No full system upgrades, if optional by the distribution, shall be done unless `-U` is passed
|
||||
to the bootstrap script(required upgrade procedures must exist on the script, currently Debian
|
||||
* No full system upgrades, if optional by the distribution, shall be done unless `-U` is passed
|
||||
to the bootstrap script(required upgrade procedures must exist on the script, currently Debian
|
||||
and RedHat based distributions support system upgrades).
|
||||
* Fixed an issue where passing BS_KEEP_TEMP_FILES=1 to the script was causing an error. #206.
|
||||
* Switched FreeBSD default packages repository to PCBSD(http://www.pcbsd.org) and added
|
||||
multiple repository support to install salt from the SaltStack's FreeBSD repository. Thanks
|
||||
* Switched FreeBSD default packages repository to PCBSD(http://www.pcbsd.org) and added
|
||||
multiple repository support to install salt from the SaltStack's FreeBSD repository. Thanks
|
||||
Christer Edwards(cedwards).
|
||||
* Improved Gentoo Support. Thanks Elias Probst(eliasp).
|
||||
* Stop execution soon for end of life distributions or non supported distribution versions.
|
||||
|
@ -618,7 +620,7 @@ Version 1.5.7:
|
|||
* Fixed an unbound variable while bootstraping Gentoo.
|
||||
* Fixed CentOS/RHEL 5.
|
||||
* Fixed crypto++ compilation. Thanks Kenneth Wilke(KennethWilke)!
|
||||
* Fixed FreeBSD git installations not pointing to the proper salt configuration directory,
|
||||
* Fixed FreeBSD git installations not pointing to the proper salt configuration directory,
|
||||
which on FreeBSD is '/usr/local/etc/salt'.
|
||||
* Fixed testing installation for Red Hat based distributions. Thanks Jeff Strunk(jstrunk)
|
||||
* Fixed wrong package name on Arch. Thanks Niels Abspoel(aboe76)
|
||||
|
@ -626,23 +628,23 @@ Version 1.5.7:
|
|||
* Fixed SmartOS installation. Thanks Matthieu Guegan(mguegan).
|
||||
|
||||
Version 1.5.6:
|
||||
* If there's a `grains` file on the provided temporary configuration directory, move it to the
|
||||
* If there's a `grains` file on the provided temporary configuration directory, move it to the
|
||||
proper place while moving the minion configuration file.
|
||||
* Gentoo bootstraps can now use a bin host to provide binary packages, just set the
|
||||
* Gentoo bootstraps can now use a bin host to provide binary packages, just set the
|
||||
`BS_GENTOO_USE_BINHOST` environment variable.
|
||||
* If `BS_KEEP_TEMP_FILES=1` is found on the environment, the script will copy the files instead
|
||||
* If `BS_KEEP_TEMP_FILES=1` is found on the environment, the script will copy the files instead
|
||||
of moving them.
|
||||
* There were still some `mv` and `cp` occurrences which were not using their `{move,copy}file`
|
||||
replacements which ended up on now respecting the "Do not override existing configuration"
|
||||
* There were still some `mv` and `cp` occurrences which were not using their `{move,copy}file`
|
||||
replacements which ended up on now respecting the "Do not override existing configuration"
|
||||
feature.
|
||||
* Distro Support Fixed:
|
||||
* Arch now upgrades it's system package properly as suggested on their mailing list.
|
||||
* Arch now moves back any configuration files provided by the user renamed by pacman on the
|
||||
* Arch now moves back any configuration files provided by the user renamed by pacman on the
|
||||
installation process.
|
||||
* Fixed SmartOS detection(was being detected as Solaris) and bootstrapping. Fixed SmartOS
|
||||
* Fixed SmartOS detection(was being detected as Solaris) and bootstrapping. Fixed SmartOS
|
||||
different gcc package names for different package sets.
|
||||
* Fixed FreeBSD git based installations(no rc.d scripts were available).
|
||||
* Fixed FreeBSD not re-evaluating the `PKI_DIR` variable since the `SALT_ETC_DIR` was
|
||||
* Fixed FreeBSD not re-evaluating the `PKI_DIR` variable since the `SALT_ETC_DIR` was
|
||||
redefined.
|
||||
* Distro Support Added:
|
||||
* Linux Mint. Thanks Alex Van't Hof(alexvh)!
|
||||
|
@ -655,7 +657,7 @@ Version 1.5.5:
|
|||
* Debian installations now use SaltStack's repository.
|
||||
* Configuration files can now be passed as an URL to a compressed file. Thanks Geoff Garside!
|
||||
* Distro Support Fixed:
|
||||
* Debian's optional ZMQ3 support was fixed (libzmq3 has moved from experimental to
|
||||
* Debian's optional ZMQ3 support was fixed (libzmq3 has moved from experimental to
|
||||
unstable).
|
||||
* Ubuntu Lucid Daily PPA
|
||||
* SmartOS no longer ignores $SALT_ETC_DIR. Matthieu Guegan!
|
||||
|
@ -670,10 +672,10 @@ Version 1.5.5:
|
|||
|
||||
Version 1.5.4:
|
||||
* Fixed an issue we had when /proc/cpuinfo had more than one CPU. Detected on AMD CPUs.
|
||||
* OpenSUSE 12.3 uses lsb_release. Fix the returned distro name "openSUSE project" to "openSUSE"
|
||||
* OpenSUSE 12.3 uses lsb_release. Fix the returned distro name "openSUSE project" to "openSUSE"
|
||||
which the script handles.
|
||||
* Added an custom move function which will only override if required and if we permit it.
|
||||
* Implemented the necessary function to pre-seed minion keys on a salt master as an optional
|
||||
* Implemented the necessary function to pre-seed minion keys on a salt master as an optional
|
||||
argument.
|
||||
* Distro Support Fixed:
|
||||
* FreeBSD (Don't let the script fail if PACKAGESITE is not set)
|
||||
|
@ -689,7 +691,7 @@ Version 1.5.3:
|
|||
* Fixed `config_salt()`
|
||||
* Distro Support Fixed:
|
||||
* EPEL-based installations (CentOS, Amazon Linux, RedHat)
|
||||
* SuSE/OpenSUSE (problem running the script twice, ie, existing `devel_languages_python`
|
||||
* SuSE/OpenSUSE (problem running the script twice, ie, existing `devel_languages_python`
|
||||
repository)
|
||||
* SuSE 11 SP1 (pip based install and config trigger)
|
||||
* Distro Support Added:
|
||||
|
@ -711,7 +713,7 @@ Version 1.5.1:
|
|||
* Improved unittesting.
|
||||
* Starting daemons.
|
||||
* Make sure that daemons are really running.
|
||||
* For the users to make the choice if installing from PIP (if required since there aren't system
|
||||
* For the users to make the choice if installing from PIP (if required since there aren't system
|
||||
pacakges).
|
||||
* Fixed salt's git cloning when the salt git tree is already present on the system.
|
||||
* Distro Support Fixed:
|
||||
|
|
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
|||
Salt Bootstrap - Generic Salt Bootstrap Script
|
||||
|
||||
Copyright 2012-2018 SaltStack (saltstack.com)
|
||||
Copyright 2012-2019 SaltStack (saltstack.com)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#======================================================================================================================
|
||||
set -o nounset # Treat unset variables as an error
|
||||
|
||||
__ScriptVersion="2018.08.15"
|
||||
__ScriptVersion="2019.01.08"
|
||||
__ScriptName="bootstrap-salt.sh"
|
||||
|
||||
__ScriptFullName="$0"
|
||||
|
|
Loading…
Add table
Reference in a new issue