Commit Graph

75226 Commits

Author SHA1 Message Date
rallytime
4e10f8e018 Call exec_test for the Syndic daemon in tests.unit.daemons_test.py 2016-12-02 13:08:41 -07:00
Mike Place
9cd42b9b3f Merge pull request #38039 from rallytime/fix-37939
Check to see if a line is already commented before moving on
2016-12-02 13:08:35 -07:00
Mike Place
a34a763984 Merge pull request #38045 from terminalmage/issue38037
yumpkg.py: don't include non-upgrade versions found by "yum list available"
2016-12-02 13:07:38 -07:00
rallytime
c1ceeca3d3 Remove initdb dependency in postgres module
The initdb dep was removed in #37993 to fix #37935, but was
subsequently (likely accidentally) added back to the module
in PR #38023.
2016-12-02 13:03:20 -07:00
Michael Lustfield
756e41caf2 Fixing a typo; line should not be commented
Commit b2fa638d6d added a lot of extra options. One of these lines (hwaddr) was commented out when it was added. It appears that this was a typo because documentation indicates this line /should/ show up in the interfaces file.
2016-12-02 13:50:16 -06:00
Michael Lustfield
32a1374748 Corrects expected return value
Tests were failing because _parse_interfaces is returning the correct data per mocked data. The assertion was expecting the iface line to have been stripped.
2016-12-02 13:34:31 -06:00
Michael Lustfield
88f9d9f22c Mostly whitespace & comment changes
Added a check to make sure inet6 iface lines have the variables needed to prevent a render error.

Also added some whitespace and jinja comment blocks to more easily identify what's going on in this file.
2016-12-02 13:21:32 -06:00
rallytime
8fd53a4808 Merge branch '2016.3' into '2016.11'
Conflicts:
  - doc/topics/cloud/vsphere.rst
  - salt/config/__init__.py
  - salt/daemons/masterapi.py
  - salt/templates/rh_ip/network.jinja
  - salt/utils/parsers.py
  - tests/unit/daemons_test.py
2016-12-02 12:18:18 -07:00
Mike Place
1ac53e5196 Merge pull request #38004 from terminalmage/issue37969
Fix regression in user/group mgmt for archive.extracted
2016-12-02 11:28:48 -07:00
Mike Place
65a0f102fd Add/remove newlines
Needed for the lint check to pass.
2016-12-02 11:27:06 -07:00
rallytime
1da7aacfbe Update unit tests to account for additional file.search call
Also removed some mocks that were not needed anymore for the
calls to ``file.contains_regex_multiline`` because that function
is no longer called in the state file.
2016-12-02 11:22:10 -07:00
Erik Johnson
65289503d9 Simplify logic for matching desired pkg arch with actual pkg arch 2016-12-02 12:14:13 -06:00
Erik Johnson
3babbcda94 yumpkg.py: don't include non-upgrade versions found by "yum list available" 2016-12-02 12:14:13 -06:00
Mike Place
e90cbbef08 Merge pull request #38051 from Ch3LL/fix_hash_docs
add docs for hash_type change to sha256
2016-12-02 11:11:36 -07:00
Michael Lustfield
41ffb8d805 Removing redundant line
After looking at this a bit more closely, I believe "interface.address" was meant to be "interface.addrfam" which /does/ make sense on this line.

Because of the previous notion that all interfaces will have an address, it seems a second line was created that assumed the only scenario where an iface won't have an address is when dhcp is used. Again, not an accurate assumption. I believe this /should/ handle most expected situations.
2016-12-02 12:06:59 -06:00
Ch3LL
e95f88fbe3 add docs for hash_type change to sha256 2016-12-02 09:28:50 -07:00
Mike Place
1b52289508 Merge pull request #38028 from terminalmage/issue38000
Pass full_return to saltutil.runner
2016-12-02 02:49:31 -07:00
kstreee
9103878c4f Fixes blocking waiting through implementing a socket pool class. 2016-12-02 18:47:33 +09:00
Robin Björklin
171cab1726 Fixed possible incorrect behavior if target wasn't on start/end of str 2016-12-02 10:47:26 +01:00
Mike Place
41c44ff684 Merge pull request #38044 from terminalmage/issue37980
Remove debugging code
2016-12-02 02:43:44 -07:00
Erik Johnson
f70a0409b3 Remove debugging code
This was left in to debug per-saltenv config overlays. I thought I had
removed it weeks ago, but I guess I didn't, and it made it into
2016.11.0. This commit removes the debugging code.
2016-12-01 23:20:01 -06:00
Michael Lustfield
3a8168667b Ensure iface_dict not being populated will not produce a stacktrace
I wouldn't consider this a complete solution, for the reason left in the comment, but it /does/ at least help.
2016-12-01 21:55:52 -06:00
Erik Johnson
a1c70c7b95 archive.extracted: fix problems with overwrite arg
Pull request #37889 introduced several problems:

1. It forces a wipe of the extracted contents if you are setting
   ``overwrite`` to ``True``. This should be configurable, to allow for
   the use case where extraction should be forced but there are contents
   added to the extracted content which the user does not want purged
   before the archive is re-extracted.

2. It ignores the case where ``enforce_toplevel`` is set to ``False``
   and the archive doesn't have all contents in a single top-level
   directory, by only deleting the first listed top-level directory (and
   ignoring completely any top-level files).

3. It ignores the case where ``archive.list`` was unable to list the
   contents of the archive (in which case ``contents`` would be
   ``None``). This would result in a TypeError when this case was
   combined with setting ``overwrite`` to ``True``.

This commit fixes all of the above problems. Additionally, a new
argument called ``clean`` now controls whether destination paths are
wiped before extraction is performed.

Finally, an issue with how I implemented detection (and cleaning) of
paths with incorrect types has been fixed. Specifically, when a path
that should have been a directory is instead a file, the ``os.stat()``
will raise an ENOTDIR when the path passed to it contains a trailing
path separator, because the path exists but is not a directory.
2016-12-01 21:47:52 -06:00
Michael Lustfield
4de2cb2805 Corrects regression in debian_ip/debian_eth.jinja
Not all interfaces will have an address. Bug #38042
2016-12-01 21:43:50 -06:00
rallytime
8a685b1820 Check to see if a line is already commented before moving on
Fixes #37939
2016-12-01 16:52:56 -07:00
rallytime
f2c045520d Write an integration test demonstrating the issue 2016-12-01 16:52:03 -07:00
Mike Place
6724fe4871 Modify daemons test to use multiprocessing (#38034)
* Modify daemons test to use multiprocessing

Without this approach, instantiating a master/minion from this test
would affect the parser tests down the line.

* Fix typo

* Fix copy/paste error

* Add missing attr
2016-12-01 15:33:36 -07:00
Mike Place
9661258f22 Merge pull request #38035 from dmurphy18/fix_debbuild
Updated to return status from make_repo similar to rpmbuild.py
2016-12-01 15:30:53 -07:00
Mike Place
141b5c5656 Merge pull request #38023 from gtmanfred/2016.11
Expand error message for postgres states
2016-12-01 15:05:06 -07:00
Nicole Thomas
79486421f5 Merge pull request #38026 from rallytime/bp-38015
Back-port #38015 to 2016.11
2016-12-01 12:16:15 -07:00
David Murphy
3bca96e7f2 Updated to return status from make_repo similar to rpmbuild.py 2016-12-01 11:45:10 -07:00
Erik Johnson
9bf13d55b4 Pass full_return to saltutil.runner
This preserves the traditional return data structure for normal usage
while allowing for the full return in orchestration.
2016-12-01 12:18:05 -06:00
Konrad Mosoń
11becf3e68 Typo fix 2016-12-01 10:23:27 -07:00
Dmitry Kuzmenko
e51448f5ed Added Carbon release notes. Fixed sphinx errors in the file. (#38022) 2016-12-01 09:59:15 -07:00
Nicole Thomas
6f34332e87 Adjust code examples to use the actual bootstrap-salt.sh file name (#38011) 2016-12-01 09:01:25 -07:00
Daniel Wallace
1aa43eba80 Expand error message for postgres states
Also revert pg_bin back to bins_dir
2016-12-01 09:40:00 -06:00
Daniel Wallace
ac72ee600e Revert "Updated the bins_dir to default to pg_bin #37935"
This reverts commit a96789353f.
2016-12-01 09:34:34 -06:00
Matei Albu
7037fa116d Add master_tops support in salt-ssh 2016-12-01 14:38:51 +01:00
Nicole Thomas
6942d5d95b Merge pull request #37995 from rallytime/merge-2016.3
[2016.3] Merge forward from 2015.8 to 2016.3
2016-11-30 13:12:55 -07:00
Sebastian Vela
cd66c179cb fix broken yaml code block (#38002) 2016-11-30 13:12:24 -07:00
Erik Johnson
23bb90a7ce Add integration test for archive.extracted with user/group set to root 2016-11-30 13:11:41 -06:00
Erik Johnson
e5ee721696 Don't use simple boolean check on uid/gid
This breaks setting the user/group to root as its uid/gid is 0.
2016-11-30 13:10:55 -06:00
Mike Place
3dd45fbedf Merge pull request #37912 from attiasr/fix_aws_response_encoding
fix encoding problem aws responses
2016-11-30 11:10:30 -07:00
Mike Place
69a74a4d2d Merge pull request #37950 from vutny/fix-starting-up-syndic
Set default Salt Master address for a Syndic (like for a Minion)
2016-11-30 11:09:03 -07:00
Mike Place
0a041277ea Merge pull request #37954 from gtmanfred/2016.11
use sleep from path for docker.sls_build
2016-11-30 11:08:44 -07:00
Mike Place
4ef5c98845 Merge pull request #37993 from ticosax/remove-initdb-requirement
Remove initdb dependency to consume postgres module.
2016-11-30 11:08:13 -07:00
Mike Place
2e5565685c Merge pull request #37997 from cachedout/gem_test_carbon
Update gem test for 2016.11
2016-11-30 10:13:45 -07:00
Mike Place
1d221aa91c
Update gem test for 2016.11 2016-11-30 09:44:56 -07:00
rallytime
b44e17921c Merge branch '2015.8' into '2016.3'
No conflicts.
2016-11-30 09:21:45 -07:00
Daniel Wallace
9caf0b406d use sleep from path for docker.sls_build
sleep sometimes is found in /bin/sleep, like in ubuntu.  We should just
depend on the PATH variable being correct, and finding sleep, instead of
explicitly saying /usr/bin/sleep
2016-11-30 10:17:30 -06:00