Commit Graph

61622 Commits

Author SHA1 Message Date
Bo Maryniuk
6e5877a2ee Add Zypper Call mock 2016-04-27 14:34:31 +02:00
Bo Maryniuk
bb5540cb4a Bugfix: inverted logic on raising (or not) exceptions 2016-04-27 14:34:17 +02:00
Bo Maryniuk
ce9262fe71 Make Zypper caller module-level reusable 2016-04-27 11:14:31 +02:00
Bo Maryniuk
77dc8695af Update docstrings according to the bugfix 2016-04-27 11:13:43 +02:00
Bo Maryniuk
46d86b21d5 Bugfix: accept refresh override param 2016-04-27 11:13:17 +02:00
Bo Maryniuk
cb40618262 Fire an event about released Zypper with its result 2016-04-27 10:04:32 +02:00
Bo Maryniuk
0728f0bc00 Replace string values with the constants 2016-04-27 10:04:15 +02:00
Bo Maryniuk
6af3f7141b Check if zypper lock exists and add more debug logging 2016-04-26 19:13:38 +02:00
Bo Maryniuk
0167b30a75 Add Zypper lock constant 2016-04-26 19:13:01 +02:00
Bo Maryniuk
370ff21d36 Fire an event to the Master about blocked Zypper. 2016-04-26 19:06:46 +02:00
Bo Maryniuk
1727ca3de2 Use new Zypper call implementation 2016-04-26 18:03:34 +02:00
Bo Maryniuk
485164aa5c Remove blocking-prone Zypper call implementation 2016-04-26 18:02:53 +02:00
Bo Maryniuk
f161f0612c Implement block-proof Zypper call implementation 2016-04-26 18:02:17 +02:00
Bo Maryniuk
baf35ed708 Remove one-char variables 2016-04-26 17:58:26 +02:00
Bo Maryniuk
2c94eb016f Remove an unused variable 2016-04-26 17:57:09 +02:00
Bo Maryniuk
6869ebc557 Remove an empty line 2016-04-26 17:56:47 +02:00
Bo Maryniuk
7e06489da9 Remove verbose wrapping 2016-04-26 17:56:24 +02:00
Bo Maryniuk
2131ff04af Standarize zypper call to "run_all" 2016-04-26 11:30:10 +02:00
Bo Maryniuk
046ef44ca3 Bugfix: version_cmp crashes in CLI if there are versions, that looks like integer or float. 2016-04-26 11:27:56 +02:00
Bo Maryniuk
b869a92eea Change Zypper calls to a single point 2016-04-22 14:59:14 +02:00
Justin Findlay
35c8af3ece modules.win_dacl: consistent case of dacl constants (#32720) 2016-04-21 08:39:23 -06:00
Boris Feld
2cd08177be Update external auth documentation to list supported matcher. (#32733)
Thanks to #31598, all matchers are supported for eauth configuration.
But we still have no way to use compound matchers in eauth configuration.
Update the documentation to explicitly express this limitation.
2016-04-21 08:33:50 -06:00
Joseph Hall
bba089d716 Check dependencies type before appling str operations (#32693) 2016-04-20 13:59:15 -06:00
garethgreenaway
3aa0605033 Handle when beacon not configured and we try to enable/disable them (#32692)
* Handle the situation when the beacon is not configured and we try to disable it

* a couple more missing returns in the enable & disable
2016-04-20 13:58:51 -06:00
Nicole Thomas
f52af5a596 Merge pull request #32718 from garethgreenaway/2015_8_schedule_list_fix
Fixes to schedule.list in 2015.8
2016-04-20 13:51:24 -06:00
Gareth J. Greenaway
7fa5d809d2 backporting a fix from develop where the use of splay would result in seconds=0 in the schedule.list when there was no seconds specified in the origina schedule 2016-04-20 09:05:50 -07:00
Nicole Thomas
f63566e452 Merge pull request #32684 from captaininspiration/2015.8
Fix routes for redhat < 6
2016-04-19 13:18:19 -06:00
Joseph Hall
7cdd5121ef Handle a couple of arguments better (Azure) (#32683) 2016-04-19 10:29:43 -06:00
captaininspiration
640c7a90da Fix routes for redhat < 6 2016-04-19 18:06:11 +02:00
Ryan Larson
aaa03bc6e6 Fix for issue 32523 (#32672) 2016-04-19 07:05:19 -06:00
Dmitry Kuzmenko
21081b1e88 Don't access deprecated Exception.message attribute. (#32556)
* Don't access deprecated Exception.message attribute.

To avoid a deprecation warning message in logs.
There is a new function salt.exceptions.get_error_message(e) instead.

* Fixed module docs test.
2016-04-18 10:51:43 -06:00
Mike Place
5d1e9a478b Lower log level for pillar cache (#32655)
This shouldn't show up on salt-call runs
2016-04-18 10:32:44 -06:00
Thomas S Hatch
a6a427463d Merge pull request #32588 from alprs/fix-salt_ssh_module_types
Fix salt-ssh module function call argument type juggling by JSON encoding them
2016-04-18 09:57:14 -06:00
Erik Johnson
5e7edfccfa yumpkg: Ignore epoch in version comparison for explict versions without an epoch (#32563)
* yumpkg: Ignore epoch in version comparison for explict versions without an epoch

Also properly handle comparisions for packages with multiple versions.

Resolves #32229

* Don't attempt downgrade for kernel and its subpackages

Multiple versions are supported since their paths do not conflict.
2016-04-18 09:03:06 -06:00
Nitin Madhok
fea6056ded Fixing critical bug to remove only the specified Host instead of the entire Host cluster (#32640) 2016-04-18 08:48:07 -06:00
Michael Calmer
0477f6613f align OS grains from older SLES with current one (#32649) 2016-04-18 08:31:58 -06:00
Bo Maryniuk
8d46244d59 Prevent crash if pygit2 package is requesting re-compilation of the e… (#32652)
* Prevent crash if pygit2 package is requesting re-compilation of the entire library on production systems (no *devel packages)

* Fix PEP8: move imports to the top of the file

* Move logger up

* Add log error message in case if exception is not an ImportError
2016-04-18 08:25:05 -06:00
Nicole Thomas
05a41a13cd Merge pull request #32614 from rallytime/merge-2015.8
[2015.8] Merge forward from 2015.5 to 2015.8
2016-04-15 13:27:47 -06:00
Nicole Thomas
ef17bde054 Merge pull request #32616 from rallytime/bp-32547
Back-port #32547 to 2015.8
2016-04-15 13:27:36 -06:00
C. R. Oldham
4242bc7399 Language clarification. 2016-04-15 12:20:56 -06:00
C. R. Oldham
965e3bc1d1 Expand on the open-source vs open-core FAQ 2016-04-15 12:20:56 -06:00
rallytime
046e401dd8 Merge branch '2015.5' into '2015.8'
No conflicts.
2016-04-15 12:11:59 -06:00
Vincas Dargis
30474713ac Fix comments value in salt.states.pkgrepo example (#32604)
'comments' option adds '#' automatically. Example contains `#http://mirror.centos.org/centos/$releasever/os/$basearch/` string which becomes prefixed with '##' in generated file.
2016-04-15 08:41:41 -06:00
Andreas Lutro
d912f1c3c6 json encode arguments passed to an execution module function call
this fixes problems where you could pass a string to a module function,
which thanks to the yaml decoder which is used when parsing command line
arguments could change its type entirely. for example:

__salt__['test.echo')('{foo: bar}')

the test.echo function just returns the argument it's given. however,
because it's being called through a salt-call process like this:

salt-call --local test.echo {foo: bar}

salt thinks it's yaml and therefore yaml decodes it. the return value
from the test.echo call above is therefore a dict, not a string.
2016-04-14 19:38:04 +02:00
Erik Johnson
ab9da90ced Revert PR #32480 and apply #32314 with fixes / documentation (#32558)
* Revert "Fix loop in maint.flo"

This reverts commit 5196cd6a6e5db3c7b1a47b1740881bbd3e87ea3d.

* Revert "Clear VCS fsbackend and git_pillar locks on master start"

This reverts commit 7e3caa9bae1ac4de62db9924374e35a8b826937e.

* Revert "Add functions to remove VCS fsbackend update locks and git_pillar update/checkout locks"

This reverts commit 4c2db32419022501eae2a695ec488693e043d189.

* prevent eternal gitfs lock due to process crash

* Use salt.utils.fopen() instead of open()

* Make pid locking work for more than just gitfs

Also, make logging more descriptive, to aid in troubleshooting.

* Add git_pillar_global_lock config option default value

* Document proper usage of {gitfs,git_pillar}_global_lock
2016-04-14 10:36:59 -06:00
Dmitry Kuzmenko
c84c9218fd Better log message on minion restart if master couldn't be reached. (#32576) 2016-04-14 10:35:59 -06:00
Nicole Thomas
027b502335 Merge pull request #32561 from gtmanfred/user_passwords
redact passwords and hashes from user.present updates
2016-04-14 09:48:59 -06:00
Daniel Wallace
3db5e78d5d redact passwords and hashes from user.present updates
Fixes #32381
2016-04-13 17:43:35 -05:00
Dmitry Kuzmenko
3c81798b6f Don't return None from eval_master (#32555)
Raise an exception instead. Because eval master if returns should return
a tuple.
2016-04-13 15:08:37 -06:00
Nicole Thomas
27e91e40cc Merge pull request #32536 from rallytime/bp-31898
Back-port #31898 to 2015.8
2016-04-13 12:49:05 -06:00