Commit Graph

85402 Commits

Author SHA1 Message Date
Daniel Wallace
749ae580ed
add module_dirs to salt ssh thin tarball
Fixes #45535
2018-03-02 14:16:05 -07:00
twangboy
bcf8b19566
Update the installer build
Fixes some issues with Py3 not building
Brings the 2 build_env files more in line with each other
Fixes some typos in the build_env scripts
Removes the need for seperate req files for Py2 and Py3
Setup.py uses the windows req file on Windows
Removes the need to install pycrypto and pyyaml in setup.py. They are
now handled in the req.txt
Uses pypi resources instead of downloading .whl files and .exes for
dependencies
Updates nssm version to address the issue in #46192
Removes nssm from buildenv and downloads 32 and 64 bit versions of nssm
in build_pkg.bat
Removes the AppNoConsole=1 setting from the nsis script since it is not
needed with the new version of nssm
2018-03-02 13:04:48 -07:00
Nicole Thomas
8c2c4e3316
Merge pull request #46208 from terminalmage/audit-umask-usage
Blacklist os.umask
2018-03-02 13:46:06 -05:00
rallytime
6439bce4a8
Don't install msgpack 0.5.5
This version has known critical issues.

See da902f9c1d (r27725642)
for more information.
2018-03-02 13:39:33 -05:00
Nicole Thomas
978e869490
Merge pull request #46293 from eliasp/2017.7-44624-py3-compat
Fix Python3 comparison `TypeError` in `salt.modules.upstart`
2018-03-02 11:36:09 -05:00
Nicole Thomas
bee4a66d0c
Merge pull request #46264 from terminalmage/issue46128
Fix incorrect merge conflict resolution
2018-03-02 09:21:12 -05:00
Nicole Thomas
1e0b3aa348
Merge pull request #46296 from vutny/doc-pillar-get
[DOC] Add missing params to `pillar.get` docstring
2018-03-02 09:19:40 -05:00
Elias Probst
2e08b0d9c8
Fix Python3 comparison TypeError in salt.modules.upstart
Use `len()` to determine emptiness of a dictionary.

PR#44624 introduced a Python3 incompatible comparison where a dict is
compared against an integer, causing breakage on Ubuntu 18.04/bionic
which uses Python3 by default for SaltStack:

```
File "/usr/lib/python3/dist-packages/salt/modules/upstart.py", line 100, in _find_utmp
  if result > 0:
TypeError: '>' not supported between instances of 'dict' and 'int'
```
2018-03-02 14:42:05 +01:00
Denys Havrysh
1faa8331e1
[DOC] Add missing params to pillar.get docstring 2018-03-02 14:15:00 +02:00
Nicole Thomas
c490a50452
Merge pull request #45874 from GwiYeong/2017.7-local-client-hotfix
fix for local client timeout bug
2018-03-01 14:39:35 -05:00
Erik Johnson
9c92aadce8
Disable blacklisted-function check for legitimate uses 2018-03-01 12:17:39 -06:00
Nicole Thomas
8e8a3a2897
Merge pull request #46261 from rallytime/merge-2017.7
[2017.7] Merge forward from 2016.11 to 2017.7
2018-03-01 12:55:22 -05:00
Nicole Thomas
88a3166589
Merge pull request #46276 from terminalmage/issue44046
salt.utils.docker.translate_input: operate on deepcopy of kwargs
2018-03-01 10:37:43 -05:00
Dheeraj Gupta
06dba51617 Make changes from review 2018-03-01 10:45:22 +05:30
Erik Johnson
a14d4daf8c
salt.utils.docker.translate_input: operate on deepcopy of kwargs
This keeps the translation from rewriting the low chunks and breaking
the watch requisite.
2018-02-28 23:07:58 -06:00
Dheeraj
727ebe1056
Merge branch '2017.7' into fix-46127 2018-03-01 10:19:38 +05:30
Nicole Thomas
da60399b8f
Merge pull request #46183 from oeuftete/fix-docker-container-running-host-config-ulimits
Fix docker_container.running HostConfig Ulimits comparison
2018-02-28 17:22:11 -05:00
Ch3LL
d4893eab4c
Add username/password to profitbricks conf for cloud tests 2018-02-28 17:09:28 -05:00
Nicole Thomas
509429f08c
Merge pull request #46260 from terminalmage/git_pillar
Normalize global git_pillar/winrepo config items
2018-02-28 17:05:25 -05:00
Erik Johnson
68000b7211
Fix incorrect merge conflict resolution
This was fixed in develop (at the time, now 2018.3), but it doesn't look
like this was fixed in 2017.7.
2018-02-28 15:59:08 -06:00
Nicole Thomas
a97a3e6fb0
Merge pull request #46101 from jfindlay/openrc_ret
In OpenRC exec module, make sure to ignore retcode on status
2018-02-28 15:01:36 -05:00
rallytime
8256ae5ee5
Merge branch '2016.11' into '2017.7'
No conflicts.
2018-02-28 14:59:01 -05:00
Nicole Thomas
140ef4d6b9
Merge pull request #46253 from rallytime/doc-banners
Update docbanner for SaltConf18
2018-02-28 14:54:17 -05:00
Nicole Thomas
1a17593c05
Merge pull request #46254 from rallytime/enterprise-banner
Update enterprise banner
2018-02-28 14:54:03 -05:00
Erik Johnson
b1ce2501fd
Normalize global git_pillar/winrepo config items
We were only normalizing the global version of a config parameter if it
had a per-remote counterpart. This was all well and good for gitfs,
which doesn't have any config values that are global-only, but
git_pillar and winrepo have config params which are global-only, and
they were therefore not being normalized.

This fixes that oversight, and also makes a few other changes in
salt.utils.gitfs to ensure that we're not pulling from the un-normalized
values from the opts dict, when we need to fall back to global defaults.

Additionally, it fixes an issue in which the `git_pillar_branch` config
item was overriding the branch set in a git_pillar remote.
2018-02-28 13:07:11 -06:00
Nicole Thomas
8c50ff32bd
Merge pull request #46250 from terminalmage/runner-docs
Add documentation to the fileserver runner
2018-02-28 13:53:48 -05:00
rallytime
f5fae3dedf
Update enterprise banner
(removes 5.0 text)
2018-02-28 11:55:16 -05:00
rallytime
07ed8c7db3
Update docbanner for SaltConf18 2018-02-28 11:42:43 -05:00
Erik Johnson
91b4895087
Add documentation to the fileserver runner
This clears up some confusion about discrepancies between the available
files and the files that show up when the runner functions are used, if
the fileserver configuration has been updated since the last time the
master daemon has been restarted.
2018-02-28 10:19:16 -06:00
Nicole Thomas
53067cca43
Merge pull request #46243 from racker-markh/fix-openstack-private-network-issue
Don't ignore 'private_ips' unnecessarily
2018-02-28 10:28:29 -05:00
Nicole Thomas
15405c8760
Merge pull request #46239 from terminalmage/issue46109
archive.extracted: don't check source file when if_missing path exists
2018-02-28 10:01:35 -05:00
rallytime
13a295a3b7
Add *pkg* and *snapper* to team-suse
Since *pkg* was specified, we don't specifially need *yumpkg* anymore.
2018-02-28 09:58:46 -05:00
Dheeraj Gupta
08d1ee8baf Fix Python3 test errors 2018-02-28 16:44:29 +05:30
Dheeraj Gupta
aa9d709015 Pass env_vars to pip.freeze
pip.installed state calls pip.freeze to check for existing installation
and to verify installation post-install. This patch propagates the
env_vars passed to pip.installed to the pip.freeze function. It also modifies
existing pip unit tests to test new functionality and adds an integration test
that verifies the expected correct behavior

Fixes #46127
2018-02-28 16:44:20 +05:30
Mark Hyde
50c1e140f0 Don't check deny private_ips already in the original list of private_ips
- Looks like this was originally introduced to resolve an issue with HP
servers putting public_ips in the private_ip list.
- The code has been refactored several times since then.
- This affects the code where 'ssh_interface: private_ips' so we by
definition do not want to use public_ips anyway.
- The original code prevents servers with only private_ips (e.g on
some rackconnect_v3 servers) from building as salt-cloud thinks the
private_ips are not valid.
- ISSUE #46215
2018-02-28 08:17:50 +00:00
Erik Johnson
58a11aaa26
Disable pylint check in salt-ssh shim 2018-02-27 23:42:51 -06:00
Erik Johnson
ecadf67659
Blacklist os.umask 2018-02-27 23:42:51 -06:00
Erik Johnson
31b1d98fcb
Replace direct use of os.umask with use of existing context manager
In cases where os.umask was being used simply to get the umask, a new
helper function has been added to keep improper direct usage of os.umask
from permanenly modifying the umask.
2018-02-27 23:42:51 -06:00
Erik Johnson
82ce546e18
Prevent failed os.makedirs from leaving modified umask in place 2018-02-27 23:42:51 -06:00
Erik Johnson
586d8b0dcf
archive.extracted: don't check source file when if_missing path exists
This exits the state early with a True result when the if_missing path
exists.
2018-02-27 23:39:32 -06:00
Ken Crowell
5b09644429
Sort lists from Ulimits before comparing 2018-02-27 23:49:05 -04:00
Ken Crowell
0b80f02226
Update old dockerng doc ref 2018-02-27 23:49:04 -04:00
Nicole Thomas
633e1208e4
Merge pull request #46221 from terminalmage/salt-jenkins-854
Fix hanging tests in integration suite
2018-02-27 16:32:25 -05:00
Erik Johnson
0eb012659c
Fix hanging tests in integration suite
A recent change to nginx appears to be causing this test to fail to
cache the test file in the temp nginx instance we've spun up. This
causes the return of cp.cache_file to be False, which in and of itself
should be enough to fail the test. But since we're not asserting on the
cp.cache_file results, flow proceeds to the next block of code, in which
we open the "file" that we cached. Some genius thought it would be a
swell idea to make io.open() successfully open a filehandle when the
path passed to it is a boolean False. When you try to read from this
filehandle, an AMAZING thing happens... It just blocks. Forever. I know,
right? Pure genius.

This commit adds an assert so that the test fails gracefully and doesn't
try to read from a bogus filehandle that SHOULDN'T EVEN EXIST.
2018-02-27 13:32:57 -06:00
rallytime
35c7b7b0d3
Add btrfs, xfs, yumpkg, and kubernetes file to team-suse 2018-02-27 13:53:43 -05:00
Nicole Thomas
7917277345
Merge pull request #46214 from vutny/formulas-readme-formatting
[DOC] Replace `note` rST block for GitHub
2018-02-27 12:42:36 -05:00
Nicole Thomas
9fe86ee520
Merge pull request #46179 from wedge-jarrad/cifs-remount-fix
Add credentials and secretfile to mount.mounted mount_invisible_keys
2018-02-27 09:55:12 -05:00
Denys Havrysh
d702846961
[DOC] Replace note rST block for GitHub 2018-02-27 16:53:39 +02:00
Nicole Thomas
a2e099b744
Merge pull request #46203 from Ch3LL/7.5_release
Add 2017.7.5 Release Notes File
2018-02-26 16:17:47 -05:00
Ch3LL
6ddf3246ce
Add 2017.7.5 Release Notes File 2018-02-26 14:22:20 -05:00