Commit Graph

82524 Commits

Author SHA1 Message Date
Erik Johnson
663874908a pkg.installed: pack name/version into pkgs argument
This allows a version of 'latest' to work when just a name and version
is passed.
2017-07-13 13:04:09 -05:00
Nicolas Geniteau
357dc22f05 Fix user creation with empty password
Emptying the password was only done if the user already existed, not
when creating.

Signed-off-by: Nicolas Geniteau <nicolas@cri.epita.net>
2017-07-13 12:32:15 -04:00
rallytime
f2250d474a Add a note about using different styles of quotes. 2017-07-12 17:08:23 -06:00
rallytime
f032223843 Handle libcloud objects that throw RepresenterErrors with --out=yaml
Fixes #42152
2017-07-12 14:19:35 -06:00
twangboy
ed89cd0b93 Use os.sep for path seps 2017-07-12 10:13:26 -06:00
Nicole Thomas
a91a3f81b1 Merge pull request #42123 from vutny/fix-master-utils-import
DOCS: describe importing custom util classes
2017-07-12 09:53:23 -06:00
rallytime
bd638880e3 Add mono-spacing to salt-minion reference for consistency 2017-07-12 09:36:07 -06:00
Denys Havrysh
6bb8b8f98c Add missing doc for `utils_dirs` Minion config option 2017-07-12 11:08:34 +03:00
Denys Havrysh
f1bc58f6d5 Utils: add example of module import 2017-07-12 11:08:34 +03:00
rallytime
38d9b3d553 Add some clarity to "multiple quotes" section of yaml docs
Fixes #41721
2017-07-11 17:28:45 -06:00
Nicole Thomas
e2aa5114e4 Merge pull request #42261 from rallytime/minor-doc-fix
Some minor doc fixes for dnsutil module so they'll render correctly
2017-07-11 17:14:53 -06:00
Nicole Thomas
3e9dfbc9cc Merge pull request #42262 from rallytime/bp-42224
Back-port #42224 to 2016.11
2017-07-11 17:14:24 -06:00
rallytime
78cdee51d5 Gate boto_elb tests if proper version of moto isn't installed
For Python 2 tests, we can use an older version. But when running
these tests of Python 3, we need a newer version of moto that supports
Python 3.

This gates the tests if the expected version of moto is missing.
2017-07-11 17:00:50 -06:00
rallytime
30d62f43da Update minion restart section in FAQ doc for windows
Fixes #41116
2017-07-11 16:24:29 -06:00
Thomas Dutrion
c31ded341c Remove duplicate instruction in Openstack Rackspace config example 2017-07-11 16:01:15 -06:00
rallytime
8c76bbb53d Some minor doc fixes for dnsutil module so they'll render correctly 2017-07-11 15:57:32 -06:00
Nicole Thomas
7780579c36 Merge pull request #42181 from garethgreenaway/42137_backport_fix_from_2017_7
fixes to state.py for names parameter
2017-07-11 15:21:31 -06:00
Nicole Thomas
72537868a6 Merge pull request #42253 from gtmanfred/2016.11
Only use unassociated ips when unable to allocate
2017-07-11 14:53:50 -06:00
Nicole Thomas
b2a4698b5d Merge pull request #42252 from UtahDave/2016.11local
simple docstring updates
2017-07-11 14:48:32 -06:00
twangboy
55b278c478 Mock the reg.read_value function 2017-07-11 13:23:11 -06:00
twangboy
45be32666a Add error-handling function to shutil.rmtree 2017-07-11 13:08:00 -06:00
Daniel Wallace
53e25760be Only use unassociated ips when unable to allocate
When checking the unassociated ips first, in Parallel mode, each server will
use the same one unallocated ip.
2017-07-11 10:47:16 -06:00
David Boucha
e6a9563d47 simple doc updates 2017-07-11 10:19:22 -06:00
Mircea Ulinic
1ac69bd737 Document the provider option and rearrange the doc 2017-07-11 14:44:51 +00:00
Mircea Ulinic
4bf4b14161 New option for napalm proxy/minion: provider
This option will turn very handy for environemnts when the user
requires a library with a different name than napalm-base (eventually
on top of the public lib). The sole requirement right now is to
preserve the get_network_driver function. However, this can be enhnaced
even from this perspective later, if really needed.
2017-07-10 20:29:35 +00:00
Nicole Thomas
781fe13be7 Merge pull request #42235 from astronouth7303/patch-1-2016.3
Abolish references to `dig` in examples.
2017-07-10 14:06:11 -06:00
garethgreenaway
81695a9f3c Merge pull request #42234 from Ch3LL/fix_cloud_rc
[2017.7] parse libcloud rc version correctly
2017-07-10 11:58:55 -07:00
Jamie Bliss
4cb51bd03a Make note of dig partial requirement. 2017-07-10 13:55:06 -04:00
Jamie Bliss
08e7d8351a Abolish references to dig in examples. 2017-07-10 13:53:12 -04:00
Ch3LL
5aedac46b7 [2017.7] parse libcloud rc version correctly 2017-07-10 12:37:22 -04:00
rallytime
798d29276e Add note about "to_bytes" jinja filter issues when using yaml_jinja renderer 2017-07-07 15:14:06 -06:00
Nicole Thomas
83cbd76f16 Merge pull request #42215 from twangboy/win_iis_docs
Add missing config to example
2017-07-07 14:18:43 -06:00
Nicole Thomas
274946ab00 Merge pull request #42211 from terminalmage/issue40928
Only pass a saltenv in orchestration if one was explicitly passed (2016.11)
2017-07-07 14:16:34 -06:00
Erik Johnson
22a18fa2ed Only pass a saltenv in orchestration if one was explicitly passed (2016.11)
Also, only pass pillarenv if explicitly passed. _get_opts() in the state
module will apply the correct saltenv (if applicable) when no explicit
saltenv/pillarenv is passed.
2017-07-07 13:44:40 -05:00
twangboy
c07e22041a Add missing config to example 2017-07-07 12:37:22 -06:00
garethgreenaway
0580f2e2b2 Merge pull request #42208 from terminalmage/ensure-json-string
Fix another instance where json.loads needs a string
2017-07-07 11:14:36 -07:00
Erik Johnson
771ade5d73 Only pass a saltenv in orchestration if one was explicitly passed (2017.7)
Also, only pass pillarenv if explicitly passed. _get_opts() in the state
module will apply the correct saltenv (if applicable) when no explicit
saltenv/pillarenv is passed.
2017-07-07 11:40:53 -05:00
Nicole Thomas
89261cf06c Merge pull request #42173 from rallytime/bp-37424
Back-port #37424 to 2016.11
2017-07-07 10:39:59 -06:00
Erik Johnson
db9b51199a Fix another instance where json.loads needs a string 2017-07-07 11:04:16 -05:00
rallytime
2be4865f48 [PY3] Fix test that is flaky in Python 3
We can't rely on lists having the same order in Python3 the same
way we rely on them in Python2. If we sort them first, and then
compare them, this test will be more reliable.
2017-07-07 09:43:52 -06:00
rallytime
b8bcc0d599 Add note to various network_hosts docs about long_run for IPv6 networks 2017-07-06 17:36:18 -06:00
garethgreenaway
41ef5225e9 Merge pull request #42184 from terminalmage/py3-tests
importlib: Use load_module() instead of exec_module() to initialize loaded mods
2017-07-06 16:04:01 -07:00
garethgreenaway
47ade9e91c Merge pull request #42088 from terminalmage/update-mocking
Update mocking in network tests
2017-07-06 15:03:42 -07:00
rallytime
11862743c2 Use long_range function for IPv6Network hosts() function
Previous implementation used xrange, which requires that the range
fit in a C long data type. Given that an IPv6 subnet is massive,
the ``salt.ext.ipadress.IPv6Network.hosts()`` function would stacktrace
with an OverflowError due to the use of xrange. However, ``/64`` is a
common netmask.

This PR uses the ``long_range`` function for the ``IPv6Network.hosts()``
function instead of ``xrange``.

While the funciton will no longer stacktrace on large IPv6 subnets, the user
should be aware that these large subnets will take a very long time to list.

Fixes #42166
2017-07-06 15:03:54 -06:00
Erik Johnson
e639be8b47 importlib: Use load_module() instead of exec_module() to initialize loaded mods
Using exec_module() results in some unexpected behavior in the LazyLoader,
so more investigation will need to be done before we can use it. In the
meantime, this commit uses load_module() instead. It also gets rid of
the now-unnecessary workarounds we had recently instituted in salt-ssh
to work around issues with the __opts__ dunder.
2017-07-06 15:02:44 -05:00
Mike Place
3b17fb7f83 Merge pull request #42175 from rallytime/bp-39366
Back-port #39366 to 2016.11
2017-07-06 14:51:47 -05:00
twangboy
8260a71c07 Disable tests that require pwd in Windows 2017-07-06 13:19:40 -06:00
Gareth J. Greenaway
a34970b45b Back porting the fix for 2017.7 that ensures the order of the names parameter. 2017-07-06 12:12:50 -07:00
Nicole Thomas
2ae5517d36 Merge pull request #42022 from terminalmage/issue41996
salt.modules.dockermod: ensure that json.loads is fed a string
2017-07-06 12:27:16 -06:00
Nicole Thomas
ea16f47f0a Merge pull request #42172 from rallytime/merge-2016.11
[2016.11] Merge forward from 2016.3 to 2016.11
2017-07-06 12:16:28 -06:00