Commit Graph

84558 Commits

Author SHA1 Message Date
spenceation
bed46a6496 Update panos.py 2017-08-09 15:14:06 -04:00
spenceation
d211c3b84a Update panos.py 2017-08-09 15:13:38 -04:00
spenceation
335bcf8dd2 Update panos.py 2017-08-09 15:13:27 -04:00
spenceation
300b5c09b3 Update panos.py 2017-08-09 13:58:09 -04:00
spenceation
d08e44c558 Update panos.py 2017-08-09 13:56:15 -04:00
spenceation
406c69da54 Update panos.py 2017-08-09 13:55:51 -04:00
Melissa Michels
cfd1b960d3 Merge branch 'develop' into fix-file.absent-inconsistency 2017-08-09 13:30:19 -04:00
Melissa Michels
7e99ea4838 Fixed spacing 2017-08-09 13:27:02 -04:00
spenceation
269ee9f464 Add files via upload
New Palo Alto state file.
2017-08-09 12:59:01 -04:00
spenceation
bd42413b3f Add files via upload
New Palo Alto module
2017-08-09 12:58:32 -04:00
spenceation
997ddf2fb3 Add files via upload
New Palo Alto proxy module.
2017-08-09 12:57:43 -04:00
spenceation
060b6c4866 Add files via upload 2017-08-09 12:57:01 -04:00
spenceation
7ca5aa5b57 Add files via upload
New Palo Alto grain module.
2017-08-09 12:56:02 -04:00
rallytime
56b53c95e3 Fix build_type and release variables for develop branch
The changes to 2017.7 were merged forward accidentally, in a section
that should have it's own settings. This restores the setting variables
for the develop branch.
2017-08-09 11:52:15 -04:00
Silvio Moioli
5a15e53886 yumpkg.list_pkg: add/adapt tests
This includes changes to the zypper tests because of the refactoring that
affected both modules.
2017-08-09 11:43:56 +02:00
Silvio Moioli
b7b68b714c yumpkg.list_pkg: add attr option to pkg.install 2017-08-09 11:43:56 +02:00
Aneesh Agrawal
cd54ff642a Upstream support for deleting IAM user/group inline policies 2017-08-08 22:47:39 +00:00
Erik Johnson
c69f17dd18 Add integration test for #42774 2017-08-08 14:20:42 -05:00
Erik Johnson
78d826dd14 Fix regression in yum/dnf version specification
Resolves #42774.
2017-08-08 13:55:35 -05:00
rallytime
152eb88d9f Update modules --> states in kubernetes doc module
The kubernetes state docs are not rendering/building due to a typo
in the doc module.

Fixes #42639
2017-08-08 14:42:34 -04:00
Erik Johnson
394a33fbb0 Update txt outputter to properly handle unicode strings
Using pprint.pformat will show the `u` prefix in the output
2017-08-08 13:33:43 -05:00
Erik Johnson
3184168365 Use explicit unicode strings + break up salt.utils
This PR is part of what will be an ongoing effort to use explicit
unicode strings in Salt. Because Python 3 does not suport Python 2's raw
unicode string syntax (i.e. `ur'\d+'`), we must use
`salt.utils.locales.sdecode()` to ensure that the raw string is unicode.
However, because of how `salt/utils/__init__.py` has evolved into the
hulking monstrosity it is today, this means importing a large module in
places where it is not needed, which could negatively impact
performance. For this reason, this PR also breaks out some of the
functions from `salt/utils/__init__.py` into new/existing modules under
`salt/utils/`. The long term goal will be that the modules within this
directory do not depend on importing `salt.utils`.

A summary of the changes in this PR is as follows:

* Moves the following functions from `salt.utils` to new locations
  (including a deprecation warning if invoked from `salt.utils`):
  `to_bytes`, `to_str`, `to_unicode`, `str_to_num`, `is_quoted`,
  `dequote`, `is_hex`, `is_bin_str`, `rand_string`,
  `contains_whitespace`, `clean_kwargs`, `invalid_kwargs`, `which`,
  `which_bin`, `path_join`, `shlex_split`, `rand_str`, `is_windows`,
  `is_proxy`, `is_linux`, `is_darwin`, `is_sunos`, `is_smartos`,
  `is_smartos_globalzone`, `is_smartos_zone`, `is_freebsd`, `is_netbsd`,
  `is_openbsd`, `is_aix`
* Moves the functions already deprecated by @rallytime to the bottom of
  `salt/utils/__init__.py` for better organization, so we can keep the
  deprecated ones separate from the ones yet to be deprecated as we
  continue to break up `salt.utils`
* Updates `salt/*.py` and all files under `salt/client/` to use explicit
  unicode string literals.
* Gets rid of implicit imports of `salt.utils` (e.g. `from salt.utils
  import foo` becomes `import salt.utils.foo as foo`).
* Renames the `test.rand_str` function to `test.random_hash` to more
  accurately reflect what it does
* Modifies `salt.utils.stringutils.random()` (née `salt.utils.rand_string()`)
  such that it returns a string matching the passed size. Previously
  this function would get `size` bytes from `os.urandom()`,
  base64-encode it, and return the result, which would in most cases not
  be equal to the passed size.
2017-08-08 13:33:43 -05:00
Nicole Thomas
22901bcdec Merge branch 'develop' into nacl_with_sealedbox 2017-08-08 13:44:06 -04:00
Nicole Thomas
c87f2d8b1c Spelling fix 2017-08-08 13:39:59 -04:00
Nicole Thomas
c000a2e027 Merge pull request #42552 from remijouannet/consul_fix
update consul module following this documentation https://www.consul.…
2017-08-08 13:36:11 -04:00
Nicole Thomas
ac752223ad Merge pull request #42784 from gtmanfred/http
only read file if ret is not a string in http.query
2017-08-08 13:20:12 -04:00
Nicole Thomas
c4104531f4 Merge pull request #42746 from amendlik/flat-roster-sdb
Resolve SDB in flat roster
2017-08-08 13:19:04 -04:00
Nicole Thomas
5ce4cba6d5 Merge pull request #42751 from carsonoid/rediscluster
Add redis cluster functionality
2017-08-08 13:18:23 -04:00
Nicole Thomas
44995b1abf Merge pull request #42794 from lomeroe/bp-42744
Backport #42744 to 2017.7
2017-08-08 13:16:30 -04:00
Melissa Michels
f5cace8054 Merge branch 'develop' into fix-file.absent-inconsistency 2017-08-08 10:48:21 -04:00
lomeroe
0acffc6df5 fix #42600 in develop
attempt to write data to regpol file even if data_to_write is empty
(i.e. no policies configured)
2017-08-08 09:03:35 -05:00
Nicole Thomas
39e9526790 Merge branch 'develop' into consul_fix 2017-08-08 10:01:37 -04:00
Nicole Thomas
6ccbcb2130 Merge branch 'develop' into rh_ip_fix 2017-08-08 09:50:35 -04:00
Nicole Thomas
23d1ac0086 Merge pull request #42667 from Glaberrd/yumpkg-install-performance
Added basic lazy loading for call list_repo_pkgs in yumpkg.install method
2017-08-08 09:49:47 -04:00
Nicole Thomas
dcf474c47c Merge pull request #42708 from cro/dont_change_args_during_memoize
Do not change the arguments of the function when memoizing
2017-08-08 09:47:01 -04:00
Nicole Thomas
293dcaddb6 Merge branch 'develop' into flat-roster-sdb 2017-08-08 09:28:53 -04:00
Nicole Thomas
aab0e3b1d0 Add blank line for linter 2017-08-08 09:27:42 -04:00
Nicole Thomas
ddb671b8fe Merge pull request #42783 from rallytime/fix-flaky-py3-test
Sort lists before comparing them in python 3 unit test
2017-08-08 09:25:14 -04:00
Glaberrd
89c7ad0d93 Merge branch 'develop' into yumpkg-install-performance 2017-08-08 09:31:14 +02:00
Mike Place
d69822fe93 Merge pull request #42721 from hibbert/allow_no_ip_sg
Allow no ip sg
2017-08-07 17:07:18 -05:00
Mike Place
d568964c96 Merge branch 'develop' into fix-file.absent-inconsistency 2017-08-07 16:24:24 -05:00
Mike Place
be5d400d90 Merge pull request #42744 from lomeroe/fix_42600
fix #42600 in develop
2017-08-07 16:16:09 -05:00
Sergey Kizunov
a0b4af4e73 Add --skip-grains option to salt-run
This will allow the user to skip grains generation and save the
2+ seconds it takes to generate grains for each call to `salt-run`.
Grains are not commonly used in runners.

Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
2017-08-07 16:10:24 -05:00
Mike Place
1f460da589 Merge pull request #42750 from jonlabroad/bugfix/set-correct-win32-attributes-when-extracting-zip
Set appropriate Windows file attributes during archive.extracted
2017-08-07 16:06:29 -05:00
Mike Place
75e6e45087 Merge branch 'develop' into rediscluster 2017-08-07 16:05:29 -05:00
Mike Place
bf7938fbe0 Merge pull request #42769 from terminalmage/issue42538
Fix domainname parameter input translation
2017-08-07 15:46:04 -05:00
Mike Place
1118b3e094 Merge pull request #42772 from rallytime/merge-develop
[develop] Merge forward from 2017.7 to develop
2017-08-07 15:44:50 -05:00
Daniel Wallace
d397c90e92 only read file if it is not a string 2017-08-07 14:37:42 -06:00
rallytime
998834fbac Sort lists before compairing them in python 3 unit test 2017-08-07 16:09:43 -04:00
rallytime
d707f94863 Update all other calls to "cmp" function
Some should just use the new utility function, while others can just
be compared more directly.
2017-08-07 15:38:39 -04:00