Mike Place
3fb928b63a
Merge pull request #39569 from s0undt3ch/2016.3
...
Don't use our own six dictionary fixes in this branch
2017-02-22 11:59:48 -07:00
Mike Place
a41c4ff9c9
Merge pull request #39567 from sum12/develop
...
[msgpack] look for `datetime.datetime` in keys also while packing
2017-02-22 11:57:47 -07:00
Mike Place
7ab258868d
Merge pull request #39553 from sergeizv/py3-file-mode
...
Make file perms check Python 3 compatible
2017-02-22 11:56:19 -07:00
Mike Place
79c1a915c4
Remove trailing whitespace
...
Needed for lint check
2017-02-22 11:49:44 -07:00
Mike Place
a9094ad088
Merge pull request #39504 from F30/dmidecode-warning
...
Improve error handling for Grains virtual hardware identification
2017-02-22 11:46:24 -07:00
Erik Johnson
650dbaca4e
states.file.patch/modules.file.check_hash: use hash length to determine type
...
This brings the file.patch state and file.check_hash function to parity
with the source_hash handling changes made in the 2016.11 branch, by using
the hash length to determine the type.
It also fixes a shadowed builtin in the file.patch state.
2017-02-22 12:44:58 -06:00
Mike Place
1dba2f9cb0
Add warning in docs
2017-02-22 11:44:38 -07:00
Mike Place
91e3319df8
Merge pull request #39508 from dincamihai/openscap
...
Openscap
2017-02-22 11:36:35 -07:00
Mike Place
6d12a8cb06
Merge pull request #39525 from zer0def/influx-query
...
Added arbitrary query execution and additional parameters to continuous query creation for InfluxDB
2017-02-22 11:33:02 -07:00
Mike Place
8cd9ee03a0
Merge pull request #39526 from theredcat/develop
...
Fixes for solrcloud module
2017-02-22 11:32:05 -07:00
Mike Place
b492f7094c
Merge pull request #39528 from thatch45/ssl_docs
...
Add better ssl option docs
2017-02-22 11:29:46 -07:00
Mike Place
0dad49cdff
Merge pull request #39532 from amontalban/corner_case_35869
...
Fix case when /etc/localtime is a file and it is not updated
2017-02-22 11:28:53 -07:00
Mike Place
b516e2968c
Merge pull request #39539 from brd/doc-saltmine
...
Improve the Salt Mine documentation
2017-02-22 11:24:39 -07:00
Mike Place
9cfaf3b599
Merge pull request #39540 from rallytime/merge-2016.11
...
[2016.11] Merge forward from 2016.3 to 2016.11
2017-02-22 11:24:00 -07:00
Mike Place
e4c1872695
Merge pull request #39543 from techhat/spmmods
...
Allow SPM to install all module types
2017-02-22 11:18:23 -07:00
Mike Place
b5f7908a62
Merge pull request #39545 from zackhsi/alpine-iptables
...
Support Alpine Linux iptables
2017-02-22 11:17:40 -07:00
coutotyler
4ccb695fc2
Moving loop.py from unit tests dir to states dir where it should be
2017-02-22 09:29:38 -08:00
Pedro Algarvio
49da135abd
Don't use our own six dictionary fixes in this branch
2017-02-22 17:18:55 +00:00
Mike Place
56fe2f198e
Merge pull request #39554 from DSRCorporation/bugs/ssl_bool
...
Cosmetic: support bool value for 'ssl' config option.
2017-02-22 09:59:02 -07:00
Sumit Jamgade
b3b98a66df
[msgpack] look for datetime.datetime
in keys also while packing
...
and `del` the old if the encoded key is different form the original one.
2017-02-22 17:55:11 +01:00
Mike Place
5c53b6d24a
Merge pull request #39558 from DSRCorporation/bugs/39368_broken_failover
...
Don't use `__salt__` in salt.utils.minion. Removed unneeded function.
2017-02-22 09:51:53 -07:00
Mike Place
72fcf9dcee
Merge pull request #39556 from s0undt3ch/features/py3
...
Require SaltPyLint >= v2017.2.22
2017-02-22 09:50:56 -07:00
Mike Place
6b4960031e
Merge pull request #39559 from mathieubouchard/develop
...
Use the new hash syntax for file.patch
2017-02-22 09:50:20 -07:00
Mike Place
cf37f83565
Merge pull request #39560 from vutny/cloud-detect-ips
...
[CLOUD] Log error when private/public IP was not detected
2017-02-22 09:49:46 -07:00
Mike Place
fbe2194a93
Merge pull request #39562 from terminalmage/issue30802
...
Add ulimits to dockerng state/exec module
2017-02-22 09:31:48 -07:00
rallytime
49fe4e891e
Merge branch '2016.11' into '2016.11'
...
No conflicts.
2017-02-22 08:54:57 -07:00
Erik Johnson
01d4a84a2f
dockerng.get_client_args: Fix path for endpoint config for some versions of docker-py ( #39544 )
2017-02-22 08:51:22 -07:00
Erik Johnson
c50374041d
Add ulimits to dockerng state/exec module
2017-02-22 09:20:49 -06:00
Denys Havrysh
567bb50884
[CLOUD] Log error when private/public IP was not detected
2017-02-22 16:52:04 +02:00
Mathieu Bouchard
c6fb1526aa
Use the new hash syntax for file.patch
...
Fixes issue https://github.com/saltstack/salt/issues/39512
2017-02-22 09:11:12 -05:00
Heghedus Razvan
1a01c11045
system: multi line support in computer description
...
Special characters like \n \t are not escaped, so it's impossible to set
a multi line computer description. To fix this I escaped all special
characters.
Signed-off-by: Heghedus Razvan <razvan.heghedus@ni.com>
2017-02-22 14:40:12 +02:00
marco.messerschmidt
d89194597a
adjust escaping
2017-02-22 13:37:11 +01:00
Dmitry Kuzmenko
c0d80488d2
Don't use __salt__
in salt.utils.minion. Removed unneeded function.
2017-02-22 15:32:20 +03:00
marco.messerschmidt
f5cb8749ef
initial fix
2017-02-22 13:26:02 +01:00
Pedro Algarvio
1dd7d8d88f
Require SaltPyLint >= v2017.2.22
...
Minimal Python version for develop is now 2.7
2017-02-22 12:15:31 +00:00
Sergei Zviagintsev
663cca762e
Remove redundant variable
...
Instead of using the intermediate 'has_saltcloud' variable report error
in the except clause.
2017-02-22 12:22:55 +01:00
Sergei Zviagintsev
d405e1c81e
Fix UnboundLocalError in salt.scripts.salt_cloud
...
Importing salt.cloud inside the function causes the 'salt' name to be
treated as local. If the event of ImportError, the function will fail
with UnboundLocalError trying to get salt.defaults.exitcodes.EX_UNAVAILABLE:
(py2-env) salt-test@tommynaut:~> python
Python 2.7.13 (default, Jan 03 2017, 17:41:54) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import salt.scripts
>>> from mock import MagicMock, patch
>>>
>>> def die(*args):
... raise ImportError
...
>>> mock = MagicMock(side_effect=die)
>>>
>>> with patch('__builtin__.__import__', mock):
... salt.scripts.salt_cloud()
...
No handlers could be found for logger "salt.scripts"
salt-cloud is not available in this system
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/home/salt-test/salt/salt/scripts.py", line 447, in salt_cloud
sys.exit(salt.defaults.exitcodes.EX_UNAVAILABLE)
UnboundLocalError: local variable 'salt' referenced before assignment
Declare the 'salt' name global to fix this.
2017-02-22 12:21:56 +01:00
Dmitry Kuzmenko
7a6fc11291
Cosmetic: support bool value for 'ssl' config option.
...
This is useful for minion config which doesn't need anything to be set
in ssl opts, but needs to enable it. In this case `ssl: True` looks
better than `ssl: {}` in yaml config.
2017-02-22 14:06:26 +03:00
Sergei Zviagintsev
8c515fcade
Make file perms check Python 3 compatible
...
Compare file mode with Python 2-3 compatible octal constants.
2017-02-22 11:38:40 +01:00
Sergei Zviagintsev
ad5b52ce3c
Add unit test for salt.utils.cloud.check_key_path_and_mode
2017-02-22 11:38:40 +01:00
Sergei Zviagintsev
313e9cae06
Add unit test for _validate_key_file_permissions in ec2 module
2017-02-22 11:38:40 +01:00
Sergei Zviagintsev
4f1bb33018
ec2: Move key file path and mode validation into separate function
...
Move the key file existence and mode validation from create() into a
separate function, so we can write unit tests for it and make create()
simpler.
2017-02-22 11:38:40 +01:00
Sergei Zviagintsev
26c1280aa4
Fix condition in if-statement
...
The latter part of the condition would never succeed. Remove it. Update
the comment.
2017-02-22 11:38:40 +01:00
Pedro Algarvio
4a96490b61
Merge pull request #39537 from s0undt3ch/features/py3
...
More Py3 compatibility fixes
2017-02-22 10:21:00 +00:00
Pedro Algarvio
0b3071ee3a
.iter<items|keys|values>()
Py3 compatibility
2017-02-22 10:20:26 +00:00
coutotyler
22b78aa984
Adding loop state
2017-02-21 18:19:16 -08:00
Zack Hsi
e354247efd
Support Alpine Linux iptables
2017-02-21 17:03:48 -08:00
Tom Williams
c3efbbaf84
Fix a couple of small-ish issues in salt/states/boto3_route53.py ( #39522 )
...
* INFRA-1963 - bad logic when checking if an update is due
* INFRA-1963 - only pass VPC related params if they're valid
2017-02-21 17:07:13 -07:00
Nicole Thomas
836d2a08d0
Merge pull request #39541 from rallytime/merge-develop
...
[develop] Merge forward from 2016.11 to develop
2017-02-21 16:56:04 -07:00
Mike Place
40f72db53e
Merge pull request #39536 from twangboy/fix_win_status
...
Namespace 'status' functions in 'win_status'
2017-02-21 16:45:31 -07:00