Commit graph

1472 commits

Author SHA1 Message Date
rallytime
a1201d1d28
Add opensuse 15 specific installation functions 2018-07-12 17:39:00 -04:00
rallytime
14959e04bd
Remove support for openSUSE Leap 42.2
Leap 42.2 is EOL and has been replaced by 42.3

This commit also simplifies some of the logic in checking for suse versions.

openSUSE 13.X is no longer supported and hasn't been for some time, so we
don't need to worry about checking for those versions any longer. The script
will bail out at the `__check_end_of_life_versions` functions early on in the
install process.
2018-07-11 13:43:19 -04:00
Nicole Thomas
c345e3e419
Merge pull request #1261 from rallytime/fedora-26-eol
Remove support for Fedora 26
2018-07-11 11:33:53 -04:00
rallytime
ba2ba1d1be
Remove support for Fedora 26
Fedora 26 is EOL as of the end of May, therefore the bootstrap script
no longer needs to support it.
2018-07-11 10:38:53 -04:00
Nicole Thomas
6fa61603f7
Merge branch 'develop' into suse15fix 2018-07-11 09:01:48 -04:00
N
c8152fc3bf delete-fifo before make-fifo 2018-07-11 00:07:01 +01:00
Nicole Thomas
848145fd85
Merge branch 'develop' into suse15fix 2018-07-10 17:03:42 -04:00
N
befd25d429 fix for opensuse15 if no lsb_release pkg 2018-07-10 17:03:27 +01:00
rallytime
f45e965fa0
Check exitcodes directly, rather than indirectly
This is a new requirement in recent versions of shellcheck. This commit
fixes the following shellcheck error:

- SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
2018-07-09 12:49:11 -04:00
rallytime
bd1d4ad8bd
Fix wordsplitting error found by shellcheck
SC2231: Quote expansions in this for loop glob to prevent wordsplitting, e.g. "$dir"/*.txt .
2018-07-09 11:23:18 -04:00
rallytime
99fcb4dc26
Use "command -v" instead of "which" command
``which`` is non-standard.

Fixes the following shellcheck error:

- SC2230: which is non-standard. Use builtin 'command -v' instead.
2018-07-09 11:20:32 -04:00
rallytime
20a89d31bc
Avoid subshell overhead and remove unnecessary parens around conditions
Fixes the following shellcheck violations:

- SC2233: Remove superfluous (..) around condition.
- SC2235: Use { ..; } instead of (..) to avoid subshell overhead.
2018-07-09 11:13:56 -04:00
Ky-Anh Huynh
375b74a1ba
Remove daily install option on Ubuntu system.
Reference:

* https://github.com/saltstack/salt-bootstrap/issues/1245
* https://github.com/saltstack/salt-pack/issues/562
2018-06-22 10:19:41 +07:00
rallytime
8e03738140
Add python 3 support for Ubuntu 18
Stable installs work fine, but git installs need an additional package
to be installed (python3-setuptools). Otherwise, the script fails with
the following error:

```
*  INFO: Running install_ubuntu_git()
Traceback (most recent call last):
  File "setup.py", line 24, in <module>
    import distutils.dist
ModuleNotFoundError: No module named 'distutils.dist'
```
2018-06-19 11:44:44 -04:00
Nicole Thomas
e16fc3ea60
Merge branch 'develop' into fix-1225 2018-06-19 10:46:57 -04:00
Nicole Thomas
3b4a5de218
Merge branch 'develop' into opensuse15 2018-06-19 10:32:18 -04:00
Nicole Thomas
3ef3504c91
Merge pull request #1247 from icyfork/return_if_apt-get_fails
Return immediately if apt-get fails
2018-06-19 09:59:24 -04:00
Ky-Anh Huynh
584c97de5d
Return immediately if apt-get fails 2018-06-19 13:21:11 +07:00
Ky-Anh Huynh
b3767e2bdc
Disable shell error about unbound variable during daily install 2018-06-19 13:14:40 +07:00
N
f08d045916 OpenSuse_Leap_15.0 repo support 2018-06-15 14:30:15 +01:00
rallytime
747b58bdb1
Update -x inline docs and README file with python3 support info 2018-06-07 11:09:12 -04:00
rallytime
1f547fede8
Add Python3 package support for Debian 9
Refs #1127
2018-06-07 11:08:49 -04:00
rallytime
dfa4f46503
Simplify logic: fail if -r/R is passed with -x python3 2018-06-06 14:55:45 -04:00
rallytime
58e0e51d4d
Add Python3 package support for CentOS 7
Refs #1127
2018-06-05 15:35:48 -04:00
rallytime
65263f176c
Shellcheck updates based on review 2018-06-04 11:53:00 -04:00
rallytime
18e1b973f2
Remove "Z" option from list of possible options
The functionality for the "Z" option was removed a while ago, but
the letter was never removed from the opt list. This change fixes the
following shellcheck warning:

SC2213: getopts specified -Z, but it's not handled by this 'case'.
2018-06-04 11:52:40 -04:00
rallytime
1a22209835
Fix final double quoting error
Fixes the following shellcheck error:

SC2086: Double quote to prevent globbing and word splitting.
2018-06-04 11:52:40 -04:00
rallytime
765944555c
Use explicit escaping with double backslashes
Fixes the shellcheck errors that look like this:

SC1117: Backslash is literal in "\n". Prefer explicit escaping: "\\n".
2018-06-04 11:52:39 -04:00
rallytime
2000661cc6
Change "egrep" uses to be "grep -E"
Fixes the following shellcheck violation:

SC2196: egrep is non-standard and deprecated. Use grep -E instead.
2018-06-04 11:52:03 -04:00
Nicole Thomas
06fdd8917a
Merge pull request #1238 from rallytime/py3-u16
Add Python3 package support for Ubuntu 16.04
2018-06-04 11:28:51 -04:00
rallytime
e20866453d
Add Python3 package support for Ubuntu 16.04
Refs #1127
2018-05-31 10:23:26 -04:00
Jan Heidbrink
c4eefe1b1b Check out repo even with NO_DEPS option
This addresses issue 1217.
2018-05-19 17:59:51 +02:00
rallytime
6d59599676
Fix the variable ref from #803
The version of shellcheck that was previously running on bootstrap PRs
was out of date and not catching the fact that the VIRTUAL_ENV variable
didn't exist. That variable should be _VIRTUALENV_DIR instead.
2018-05-16 10:20:53 -04:00
rallytime
22a7bc373a
Add Ubuntu 18.04 support
Fixes #1225
2018-05-10 15:56:48 -04:00
pjcreath
056f8d8a39
Add 'yum clean metadata' after updating the saltstack.repo file as requested.
According to https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-working_with_yum_cache
this option "eliminates all files that yum uses to determine the remote
availability of packages."
2018-04-26 13:17:15 -04:00
pjcreath
03273de164
bootstrap-salt.sh: fix for silently ignored version argument on CentOS/RHEL
This commit adds a warning when a pre-existing saltstack.repo
on CentOS/RHEL causes the version argument to be ignored.

It also allows the -F (forced overwrite) option to override
this situation, overwriting the saltstack.repo file, and
thus installing the specified version.

Resolves #1209.
2018-04-26 13:17:10 -04:00
rallytime
cded5c2a07
Update release date to 4-25 2018-04-25 15:29:40 -04:00
rallytime
af8e97183e
Update release version in bootstrap-salt script 2018-04-24 15:15:07 -04:00
abednarik
15250b8ee3 Install py-tornado4 for FreeBSD.
See https://github.com/saltstack/salt/issues/45790
2018-04-19 14:38:14 -03:00
Denys Havrysh
357a07bf7b
Remove COPR repos configuration for Fedora 2018-03-27 13:24:45 +03:00
Benjamin Drung
e2c0433ffa Use integer parameter for sleep command
The bootstrap-salt.sh script uses a "bashism" for the sleep command.
Bash allows real numbers as sleep time, but other POSIX shell
interpreters only support an integer as parameter. Thus raise the sleep
timeout from 0.1 to 1 second.

The git commits baa54a64, acbd9842, 1aea3037, and 03186a6d that
introduce the sleep commands do not explain why a sleep command is used
in the code. You might be able to remove the sleep command completely.

Bug-Debian: https://bugs.debian.org/772406
2018-03-08 16:30:23 +01:00
Nicole Thomas
a2385e2d89
Merge pull request #1204 from rallytime/add-2018.3
Add 2018.3 branch to list of stable options
2018-03-07 18:04:19 -05:00
rallytime
0c4b68db40
Add 2018.3 branch to list of stable options 2018-03-07 15:29:37 -05:00
rallytime
c035d83c9c
If installing with -P, install tornado<5.0.
Tornado 5.0 is not compatible with Salt at this time. For now, install
an older version until Salt is fixed for newer versions of tornado.

See https://github.com/saltstack/salt/issues/45790 for more information.

Fixes #1202
2018-03-07 15:08:31 -05:00
Ch3LL
de6a459405
remove unnecessary variable 2018-02-15 10:16:41 -05:00
Ch3LL
1827473239
Add M2Crypto to python27 centos 6 bootstrap install 2018-02-14 18:44:05 -05:00
rallytime
d945972fc0
Port spelling fixes from change in Salt to Bootstrap
Refs https://github.com/saltstack/salt/pull/45747
2018-01-29 08:55:27 -05:00
Nicole Thomas
ca13dd562d
Merge pull request #1197 from jasperla/openbsd/cdn
OpenBSD has a cdn which handles selecting the best mirror
2018-01-26 15:11:00 -05:00
rallytime
4476ddcb9b
Add M2Crypto package back to git install functions
This is due to the change in Salt for Oxygen:
https://github.com/saltstack/salt/pull/44962
2018-01-26 12:26:45 -05:00
Jasper Lievisse Adriaanse
6f1f4cae0b OpenBSD has a cdn which handles selecting the best mirror
Set the mirror by overwriting the installurl file which can only
contain a single line so the original behaviour of appending
might not have worked reliably.
The user can pass '-r' to disable setting the repos already to
opt-out of this behaviour.
2018-01-25 21:48:39 +01:00