Commit Graph

58168 Commits

Author SHA1 Message Date
Trần Tuấn Anh
ea3908debd handled options 2015-08-21 09:12:23 +07:00
Erik Johnson
cca92412d8 Use salt.utils.fopen() instead of open() 2015-08-20 18:51:44 -05:00
Justin Findlay
343e47f00c check exists and values in boto_elb listeners
Fixes #26502.
2015-08-20 17:40:23 -06:00
Justin Findlay
80110387c7 Merge pull request #26521 from terminalmage/issue15519
Work around upstream git bug when cloning repo as root
2015-08-20 17:32:16 -06:00
Justin Findlay
73183cbdb4 Merge pull request #26518 from krak3n/fix/25492
Fix for #25492
2015-08-20 17:28:34 -06:00
Justin Findlay
e2c43916d2 Merge pull request #26514 from evverx/unmask-runtime-masked-services
Unmask a runtime masked services too
2015-08-20 17:27:07 -06:00
Justin Findlay
51065b834f Merge pull request #26511 from rasathus/support-nested-upstart
Adds support for nested upstart scripts in the form of subfolder/serv…
2015-08-20 17:18:17 -06:00
Justin Findlay
662e723ae0 fixup note lint in file.replace state mod 2015-08-20 17:06:45 -06:00
Justin Findlay
dfd8c457bd Merge pull request #26529 from mnalt/fix_freebsdservice_module_for_missing_rcconf
bugfix: fix service.enable for missing rc.conf
2015-08-20 16:53:08 -06:00
Colton Myers
ff2d6c6045 Fix git test 2015-08-20 16:23:36 -06:00
Colton Myers
a3fc46da0b py3 compat 2015-08-20 16:23:32 -06:00
Mike Place
dd1bfa821b Merge pull request #26516 from techhat/spmloader2
Move more path operations into SPM loader
2015-08-20 16:15:20 -06:00
Jeremy Rosenbaum
9efbf4e5d4 Fix lint errors
Running the `MinionBase` init method with `super` is literally the same as the
`self.opts = opts` statement that was in the init method for `SMinion` anyway
so if it makes flake8 happy, then sure.
2015-08-20 14:52:14 -07:00
Mike Place
c6d8e34730 Merge pull request #26528 from zmalone/2015.5
Fixing encrypt to instructions in the 2015.5 branch
2015-08-20 15:49:06 -06:00
Joseph Hall
aead0ac432 Fix references 2015-08-20 15:47:34 -06:00
Mike Place
854491c9f3 Merge pull request #26533 from cachedout/fix_event_socket
Fix too aggressive even init check
2015-08-20 15:29:07 -06:00
Jenkins
b44ab40e26 Fix too aggressive even init check 2015-08-20 15:28:44 -06:00
Shane Lee
20fddf40a1 Merge pull request #26522 from cro/proxy_should_not_load
Do not load package provider if its not a proxy
2015-08-20 14:43:21 -06:00
Jeremy Rosenbaum
0eaccab724 use same master eval logic for Minion and SMinion
This fixes https://github.com/saltstack/salt/issues/24354
There was inconsistent behavior between salt-minion (`Minion` under the hood)
and salt-call (`SMinion` under the hood) with regard to how the master was
determined from the minion config.  `SMinion` had its own hard-coded master
evaluation in its `__init__` method that was not congruent with documentation.
The "standard" master evaluation logic existed in `master_eval`, a method of
`Minion`.
This was resolved by moving `master_eval` into `MinionBase` (which `Minion`
inherits from) and making `SMinion` also subclass `MinionBase`, which
otherwise only consists of a couple of methods that `SMinion` won't access.
2015-08-20 13:41:59 -07:00
Mike Place
6048b1351d Merge pull request #26531 from cachedout/event_test_fix
Fix failing event tests and modify event init
2015-08-20 14:38:36 -06:00
Colton Myers
d2fd7e24ad Merge pull request #20 from terminalmage/pr-26530
Better sensitive data redaction in git execution module
2015-08-20 14:28:36 -06:00
Erik Johnson
509f89f64f Better sensitive data redaction in git execution module
This modifies the existing behavior such that re.IGNORECASE will be used
if we're on Python 2.7 or later. If not, then we try to match the regex
first on a lowercased version of the string, and if it matches, return
the substitution on a lowercased version of the string. If there is no
match, we just return the original string. This keeps us from
unnecessarily lowercasing the string.
2015-08-20 15:26:45 -05:00
Jenkins
f5131c2b46 More indent 2015-08-20 13:57:36 -06:00
Jenkins
729ca11333 Indent error 2015-08-20 13:54:16 -06:00
Colton Myers
0aadf75d0d Force url to lowercase 2015-08-20 13:47:27 -06:00
Jenkins
52cde47aaf Fix failing event tests and modify event init
There was a problem wherein two sockets would race to see which was connected first,
causing unit.utils.event_test.TestSaltEvent.test_event_multiple_clients to fail from
time to time. This gives a little breathing room to the second socket.

This also only does the pub connect if necessary on SaltEvent instantation.
2015-08-20 13:41:07 -06:00
Colton Myers
2907a64052 Merge remote-tracking branch 'upstream/2015.5' into merge-forward-2015.8
Conflicts:
    salt/cli/batch.py
    salt/modules/git.py
    salt/utils/event.py
2015-08-20 13:31:46 -06:00
Martin Alt
a6b5007161 bugfix: fix service.enable for missing rc.conf
The code assumed rc.conf to be existing and non-empty. Added a length
check to ensure it works even if rc.conf is missing, such as in a newly
created jail.
2015-08-20 21:04:15 +02:00
Zach Malone
39b111c465 Fixing encrypt to instructions in the 2015.5 branch, --homedir is not necessary here. 2015-08-20 12:36:54 -06:00
Stanislav Blokhin
57943ff4f7 Fetch AWS region from EC2 instance metadata
sig4() and query() upon getting a location set to None will attempt
to fetch it from EC2 instance metadata before falling back to
us-east-1.

get_region_from_metadata() uses caching just like creds() does. If
it can't connect to the metadata service, it does not try again.
If a value is successfully retrieved, it is cached so that future
calls are faster.

get_location() will call get_region_from_metadata() if location is
not explicitly set in config.

If sig4() receives an empty location value, it tries to
fetch it using get_region_from_metadata()
2015-08-20 20:24:05 +02:00
Jens Rantil
86f1b14dc3 logging(cmp_version): output assertion
Log error. The integer comparison is Python 3 compatible and ripped from
[1]. This will catch incorrectly implemented version comparison
functions.

[1] http://stackoverflow.com/a/3646519/260805
2015-08-20 19:38:50 +02:00
Jens Rantil
db79c0e861 utils(version_cmp): handle comparison not in (0,1,-1)
See [1]. It fixes it.

[1] https://github.com/saltstack/salt/issues/18652#issuecomment-133073612
2015-08-20 19:38:50 +02:00
Jeremy Rosenbaum
d8cc71dbd8 fix some docstring typos 2015-08-20 10:35:20 -07:00
C. R. Oldham
e2c70ac55d Merge pull request #26433 from cro/pm_20158_2
Add support for default proxy config options, change default location of proxy config and log to /etc/salt/proxy and /var/log/proxy
2015-08-20 11:14:13 -06:00
Justin Findlay
612e342c70 autogenerated 2015.5.5 release notes 2015-08-20 11:08:56 -06:00
Nicole Thomas
ade934f06e Merge pull request #26504 from nmadhok/vmware-hardware-version-2015.8
[Backport] Adding ability to specify the virtual hardware version when creating VM
2015-08-20 10:55:40 -06:00
Trần Tuấn Anh
30c9923d38 fix E1321 2015-08-20 23:52:10 +07:00
C. R. Oldham
789defae5b Make sure virtual package provider does not load for non-proxies 2015-08-20 10:30:17 -06:00
Erik Johnson
8319743660 Work around upstream git bug when cloning repo as root
See https://github.com/saltstack/salt/issues/15519#issuecomment-128531310
2015-08-20 11:07:37 -05:00
Colton Myers
c390e812d8 Merge pull request #26435 from basepi/merge-forward-develop
Merge forward from 2015.8 to develop
2015-08-20 10:05:53 -06:00
Colton Myers
28aa9b1058 Merge pull request #26486 from thusoy/git-confidential-auth
Git: Don't leak https user/pw to log
2015-08-20 10:04:52 -06:00
Justin Findlay
6fd1ed8c42 Merge pull request #26508 from jodv/public_hash_function
Make arbitrary hash function access public
2015-08-20 09:53:44 -06:00
Trần Tuấn Anh
c555ef7de9 add urlparse 2015-08-20 22:44:49 +07:00
Erik Johnson
9a87f052d5 Update class name for old git pillar class 2015-08-20 10:39:36 -05:00
Chris Reeves
dc45384ff1 Fix for #25492 2015-08-20 16:12:22 +01:00
Mike Place
682b5ee4f3 Merge pull request #26517 from cachedout/opensuse_fix_2
Better fix for opensuse tornado httpclient
2015-08-20 09:10:45 -06:00
Jenkins
e8c9ffef7e Better fix for opensuse tornado httpclient 2015-08-20 09:09:58 -06:00
Joseph Hall
8b7981ed76 Move more path operations into SPM loader 2015-08-20 09:00:41 -06:00
Ageeleshwar Kandavelu
8723754dfa pylint fixes 2015-08-20 20:24:15 +05:30
Joseph Hall
fe3d0e8dc5 Merge pull request #26479 from rallytime/ec2_force_rename
Don't allow VMs with duplicate names to be created in EC2/AWS
2015-08-20 08:36:39 -06:00