Commit Graph

78174 Commits

Author SHA1 Message Date
Daniel Wallace
0194c60960
dont print Minion not responding with quiet 2017-09-27 08:29:41 -06:00
Denys Havrysh
651ed16ad3 Fix Pylint deprecated option warnings 2017-09-27 10:38:47 +03:00
Erik Johnson
9dee896fb9 Merge pull request #43747 from rallytime/gpg-verification
Add GPG Verification section to Contributing Docs
2017-09-26 16:25:37 -05:00
Nicole Thomas
7a70de19f4 Merge branch '2016.11' into gpg-verification 2017-09-26 16:35:29 -04:00
Nicole Thomas
1cc3ad1c8d Merge pull request #43733 from terminalmage/issue43729
Allow docker_events engine to work with newer docker-py
2017-09-26 12:47:39 -04:00
Nicole Thomas
5d38be4ff7 Merge pull request #43458 from terminalmage/issue42082
Fix missing PER_REMOTE_ONLY in cache.clear_git_lock runner
2017-09-26 10:39:00 -04:00
rallytime
23bb4a5dde
Add GPG Verification section to Contributing Docs
When we enable GPG Verification for pull request reviews, we should
make sure there is information available in our Contributing docs
about how to sign commits.
2017-09-26 10:16:56 -04:00
Nicole Thomas
e580ed4caa Merge branch '2016.11' into issue43373 2017-09-26 10:10:32 -04:00
Erik Johnson
023a563657 Merge pull request #43727 from rallytime/fix-43650
Revise "Contributing" docs: merge-forwards/release branches explained!
2017-09-26 07:43:15 -05:00
Erik Johnson
6e5c99bda0
Allow docker_events engine to work with newer docker-py
The Client attribute was renamed to APIClient in docker-py 2.0
2017-09-26 07:18:33 -05:00
Erik Johnson
5b3be6e8af
Fix failing unit test 2017-09-25 16:06:33 -05:00
Erik Johnson
5f90812b12
Fix missing PER_REMOTE_ONLY in cache.clear_git_lock runner
This allows for the runner to clear the git lock if any of the
per-remote-only params was present in the configuration.

This also adds PER_REMOTE_ONLY attributes to the winrepo runner and
git_pillar external pillar, and fixes all refs to GitBase's init_remotes
function to include PER_REMOTE_ONLY arguments. This will insulate us
against future headaches if either git_pillar or winrepo gain extra
per-remote-only params, as we will only need to make the change to the
attribute in their respective modules.
2017-09-25 15:17:47 -05:00
rallytime
babad12d83
Revise "Contributing" docs: merge-forwards/release branches explained!
Fixes #43650

The merge-forward process needs a more prominent position and explanation
in the contributing documentation. This change attempts to explain this
process a little more fully and incorporates some changes to how we are
handling "main" release branches, "dot" release branches, and "develop"
in a more complete context with merge-forwards.
2017-09-25 15:23:01 -04:00
Damon Atkins
350244bd93 typo in comments and doc strings. 2017-09-24 03:03:44 +10:00
Damon Atkins
ec31f5a9bd 2017.11/develop version() was ignoring saltenv setting. 2017-09-23 18:43:52 +10:00
Damon Atkins
b314549a32 Backport of devlop to 2016.11 with additional bug fixes
Taken the develop version of win_pkg.py and
- import sys to get INT max size for compare_version()
- enhanced compare_version to support versions of 'Not Found' and 'latest'
  which can occur in windows.
- comment out import salt.utils.platform which is not in 2016.11
-- salt.utils.platform.is_windows() renamed back to salt.utils.is_windows()
- added back the warning about win_repo_source_dir removal as this is
  required for 2016.11 version.

Added on top of the backport is
- Additional comments into the code
-- Indicate pkg_list can return a 'version number' and also 'Not Found'
   version number
-- _get_latest_pkg_version() can return 'version number' or 'latest'
-- latest_version() can return blank if the latest version is installed or no
   version at all is installed

- upgrade_available did not require to version() and latest_version() as
  latest_version() does everything required.

- list_upgrades() added comments to explain code code, simply code
  to latest_version() rather than calling latest_version()
  and compare_versions()

- list_available() is not required to force a refresh by default

- version() added comments and questions as the return value
  is non standard

- genrepo() add questions around the open mode and
  get_repo_data open mode

- _repo_process_pkg_sls()
-- file param was renamed to filename as file variable name classes
   with file()
-- rename var version to version_str so as not to import
   version() function
-- remove a section of code which was never executed and never used

- install()
-- simplied an if statements
-- add more code comments
2017-09-23 16:07:25 +10:00
Erik Johnson
f73764481b Add missing support for use/use_in requisites to state.sls_id
Because requisite resolution doesn't happen until we run call_high, and
state.sls_id doesn't run call_high (but rather calls a single low chunk
from the compiled low chunks), the use/use_in requisites are ignored.
This fixes that oversight by resolving requisites in state.sls_id before
we compile the high data.
2017-09-22 17:03:53 -05:00
Mike Place
f46c858f25 Merge pull request #43648 from rallytime/handle-boto-vpc-errors
Handle VPC/Subnet ID not found errors in boto_vpc module
2017-09-22 11:40:42 -06:00
Mike Place
9dba34aa06 Merge pull request #43575 from akissa/fix-csr-not-recreated-if-key-changes
Fix CSR not recreated if key changes
2017-09-21 11:52:00 -06:00
Mike Place
1d4fa48209 Merge pull request #43672 from rallytime/bp-43415
Back-port #43415 to 2016.11
2017-09-21 10:38:55 -06:00
Mike Place
ff832ee607 Merge pull request #43673 from rallytime/bp-43652
Back-port #43652 to 2016.11
2017-09-21 10:37:35 -06:00
Mike Place
365cb9fba8 Merge pull request #43677 from terminalmage/runners-docs-2016.11
Fix RST headers for runners (2016.11 branch)
2017-09-21 10:35:56 -06:00
Erik Johnson
2fd88e94fa Fix RST headers for runners (2016.11 branch)
To conform with the rest of the rst files for runner docs, they should
only contain the module name.
2017-09-21 10:11:28 -05:00
Nicole Thomas
be38239e5d Merge pull request #43534 from twangboy/win_fix_pkg.install_2016.11
Fixes removal of double-quotes by shlex_split in winrepo for 2016.11
2017-09-21 10:39:41 -04:00
Raymond Piller
d91c47c6f0 Salt Repo has Deb 9 and 8 2017-09-21 10:24:41 -04:00
matt
3fb42bc238 Fix env_order in state.py
Fixes #42165
2017-09-21 10:22:54 -04:00
Nicole Thomas
0d3fd3d374 Merge pull request #43661 from moio/2016.11-multiprocessing-doc-fix
multiprocessing minion option: documentation fixes (2016.11)
2017-09-21 09:02:26 -04:00
Silvio Moioli
625eabb83f multiprocessing minion option: documentation fixes 2017-09-21 10:55:52 +02:00
rallytime
54842b5012 Handle VPC/Subnet ID not found errors in boto_vpc module
If a VPC or Subnet ID is not found when calling functions that are
supposed to be checking for vpc/subnet ID existence, the return
should be consistent by returning booleans/None instead of returning
the NotFound error from AWS.

The surrounding code blocks indicate that this is expected as well
as unit test assertions. The moto library had a bug in it where
it wasn't raising "x.NotFound" errors when it should have been. The
latest version of moto has fixed this bug, causing our tests to fail
since the boto_vpc module is not handling the "x.NotFound" errors
separately from the generic BotoServerErrors.

This fixes the test failures in the branch tests that were caused by
upgrading the moto version to the latest release.
2017-09-20 16:58:17 -04:00
Mike Place
6b4516c025 Merge pull request #43646 from brejoc/2016.11.4-pidfile-tests
Added tests for pid-file deletion in DaemonMixIn
2017-09-20 13:21:53 -06:00
Jochen Breuer
96f39a420b Fixed linting
Fix for "String format call with un-indexed curly braces".
2017-09-20 16:35:01 +02:00
Jochen Breuer
08fba98735 Fixed several issues with the test
* Removed redundant import.
* No longer inheriting from LogSettingsParserTests.
* Replaced test class description with somethin meaninful.
* Fixed identation.

I've also moved the class to the bottom, since all the classes inheriting
from LogSettingsParserTests are in the block above.
2017-09-20 15:37:24 +02:00
Jochen Breuer
3a089e450f Added tests for pid-file deletion in DaemonMixIn
This is a follow up on this PR:
https://github.com/saltstack/salt/pull/43366

Since we can get an OSError durin PIDfile deletion with non-root users, it
would make sense to also test for this. So here are the two test cases.
One with an OSError and the other one without.
2017-09-20 14:34:30 +02:00
Mike Place
cfb1625741 Merge pull request #43591 from rallytime/merge-2016.11
[2016.11] Merge forward from 2016.11.8 to 2016.11
2017-09-19 10:18:33 -06:00
rallytime
57b9d642c2 Merge branch '2016.11.8' into '2016.11'
No conflicts.
2017-09-18 16:40:05 -04:00
Nicole Thomas
8671b91f62 Merge pull request #43572 from vutny/fix-salt-cloud-list-min-instance-set
cloud.action: list_nodes_min returns all EC2 instances
2017-09-18 16:36:43 -04:00
Mike Place
e83421694f Merge pull request #43550 from twangboy/osx_fix_preinstall_2016.11.8
Fix preinstall script on OSX for 2016.11.8
2017-09-18 12:34:11 -06:00
Andrew Colin Kissa
b1b4dafd39 Fix CSR not recreated if key changes 2017-09-18 18:05:55 +02:00
Denys Havrysh
21966e7ce8 cloud.action: list_nodes_min returns all instances 2017-09-18 16:34:59 +03:00
twangboy
1b0a4d39d2 Fix logic in /etc/paths.d/salt detection 2017-09-15 13:37:53 -06:00
twangboy
1546c1ca04 Add posix=False to call to salt.utils.shlex_split 2017-09-15 11:16:50 -06:00
garethgreenaway
a648f75949 Merge pull request #43508 from rallytime/bp-43333
Back-port  #43333 to 2016.11.8
2017-09-14 14:40:19 -07:00
Damon Atkins
d4981a2717 Update doco 2017-09-14 12:25:30 -04:00
Damon Atkins
a7c8b9e048 Update win_pkg.py 2017-09-14 12:25:30 -04:00
Damon Atkins
1d6dc6fb72 Docs are wrong cache_dir (bool) and cache_file (str) cannot be passed on the cli (#2) 2017-09-14 12:25:30 -04:00
Mike Place
f2b86fa2db Merge pull request #43461 from twangboy/win_norestart
Add `/norestart` switch to vcredist install
2017-09-12 14:33:45 -06:00
twangboy
2d269d1a76 Change all comment markers to '#' 2017-09-12 12:59:57 -06:00
twangboy
d80aea16cb Handle ErrorCodes returned by VCRedist installer 2017-09-12 11:56:17 -06:00
twangboy
fb31e9a530 Add /norestart switch to vcredist install 2017-09-12 10:05:36 -06:00
Mike Place
90e8ca9c36 Merge pull request #43366 from brejoc/2016.11.pidfile-fix
Catching error when PIDfile cannot be deleted
2017-09-12 09:31:15 -06:00