Commit graph

38421 commits

Author SHA1 Message Date
Toshio Kuratomi
1b7828561e New release v2.6.17 2019-05-23 10:43:59 -07:00
Matt Clay
5cbc6b0566 [stable-2.6] win_get_url: ignore defender false positive in tests (#56826)
* [stable-2.6] win_get_url: ignore defender false positive in tests (#56812)
(cherry picked from commit 124400f319)

Co-authored-by: Jordan Borean <jborean93@gmail.com>

* Adapt tests to work without remote_tmp_dir.
2019-05-23 09:38:27 -07:00
Alicia Cozine
45e9ff7eb4
Removed misleading padding from highlighted results of a search query (#55464) (#56653)
(cherry picked from commit 0330ea616e)
2019-05-21 12:48:51 -05:00
Alicia Cozine
674980afcc
Backport/2.6/docs default lists (#56666)
* Improve rendering of default lists (#56041)

(cherry picked from commit 53ed1bfc49)

* Add compat tojson filter for jinja2 versions missing it (#56596)

(cherry picked from commit 3f4a22d8ef)
2019-05-21 11:51:56 -05:00
Alicia Cozine
e61a089b5e
Speed up the Sphinx documentation build (#55593) (#56663)
* speeds up the docs build by changing the navigation collapse setting

(cherry picked from commit 47a440774f)
2019-05-21 11:46:27 -05:00
Alicia Cozine
80d37638c6
Update default roles_path documentation (#56320) (#56664)
(cherry picked from commit c1ebc8d9c2)
2019-05-20 17:11:25 -05:00
Alicia Cozine
99fdfbe93f
creates reversed glob TOCs for porting guide and roadmap index pages (#56656) 2019-05-20 17:10:33 -05:00
Alicia Cozine
50418e7532
clean backport of PR 56355 (#56652) 2019-05-20 17:08:16 -05:00
EvgenyF
83f09036a2 [stable-2.6] Changing the license to Apache 2
(cherry picked from commit ea4842c0d3)

Co-authored-by: EvgenyF <evgenyf@radware.com>
2019-05-20 12:28:46 -07:00
Sandra McCann
e988a85a0e [backport][Doc-Release-2.8] backport release table for 2.8 (#56661)
* backport table of supported releases
2019-05-20 13:26:55 -05:00
Jordan Borean
327016404d win_acl - fix network path qualifier parsing (#55970)
(cherry picked from commit cc3b8b9f72)
2019-05-17 23:20:59 -04:00
Matt Martz
7a1ccef131 [stable-2.6] Bump erlang ping to 1:20.3.8.18-1
(cherry picked from commit 4b00141)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-05-16 12:00:15 -04:00
James Tanner
79ae21e68e [stable-2.6] Nullify improperly licensed test file
(cherry picked from commit 940d58e)

Co-authored-by: James Tanner <tanner.jc@gmail.com>
2019-05-15 15:17:49 -04:00
Matt Clay
f3f266874c [stable-2.6] Install rabbitmq from s3 in tests..
(cherry picked from commit e105f5b436)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-04-30 12:41:05 -05:00
Sandra McCann
7e5d22d0c2 Update Ansible docsite CSS to fix multi-page printing issue (#51472) (#55667)
* Update css to fix multi-page printing issue
* Add margin edit

(cherry picked from commit 51ac4d3441)
2019-04-23 14:04:04 -05:00
Martin Krizek
3ae0296b14 ansible-test yamllint: fix UnicodeDecodeError (#55364)
* ansible-test yamllint: fix UnicodeDecodeError

* Conditional fix

(cherry picked from commit f8bebc61c8)
2019-04-22 09:37:50 -07:00
Dag Wieers
c1b640b65d ACI: Ensure we use native strings for signature (#55163)
* ACI: Ensure we use native strings for signature

* Add changelog fragment
2019-04-16 14:57:50 -07:00
Matt Clay
126b68591d [stable-2.6] Fix ansible-test unicode error with redact option.
(cherry picked from commit 2ef4ba3b4d)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-04-15 13:34:30 -07:00
Jordan Borean
2fab4dd204 win_domain - fix for checking for domain on new host (#55195)
(cherry picked from commit 6039ff9a24)
2019-04-12 12:28:53 -07:00
Matt Clay
a3f1fda8de [stable-2.6] Compat fix for ansible-core-ci on Python 3.7.
(cherry picked from commit 5b133f3455)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-04-10 10:47:45 -07:00
Matt Clay
29bbb1b3bb [stable-2.6] Fix apache shutdown in subversion test.
(cherry picked from commit 58f4947ffe)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-04-08 11:19:43 -07:00
Matt Clay
2f48995a24
[stable-2.6] Limit supervisor in tests to < 4.0.0. (#54938)
Tests fail when using version 4.0.0.

(cherry picked from commit 4b3662605d)
2019-04-05 18:33:24 -07:00
Lukasz Szczesny
0d3b577774 Backport/2.6/54105 pamd: fix idempotence issue when removing rules 2019-04-04 12:08:06 -07:00
Martin Krizek
8b05790a45 2.6: Fix copy module to reset filesystem acls (#51868) (#54795)
* Fix copy module to reset filesystem acls (#51868)

The controller's fixup_perms2 uses filesystem acls to make the temporary
file for copy readable by an unprivileged become user. On Python3, the
acls are then copied to the destination filename so we have to remove
them from there.

We can't remove them prior to the copy because we may not have
permission to read the file if the acls are not present. We can't
remove them in atomic_move() because the move function shouldn't know
anything about controller features. We may want to generalize this into
a helper function, though.

Fixes #44412

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
(cherry picked from commit d15812fabf)

* Fix get_bin_path usage
2019-04-04 12:07:26 -07:00
Toshio Kuratomi
61aa22f32a Update Ansible release version to v2.6.16.post0. 2019-04-04 10:30:55 -07:00
Toshio Kuratomi
da048ae80d New release v2.6.16 2019-04-03 15:38:52 -07:00
Matt Clay
d2d7556da7 [stable-2.6] Reduce testing of Ubuntu versions.
Removing:

- Ubuntu 14.04 with Python 2.7
- Ubuntu 16.04 with Python 3.5

Keeping:

- Ubuntu 16.04 with Python 2.7
- Ubuntu 18.04 with Python 3.6.
(cherry picked from commit c8f2becb7a)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-04-02 22:52:00 -07:00
Simon Westphahl
7d6c925e38 Catch all request timeouts for winrm connection (#54104)
* Catch all request timeouts for winrm connection

The current implementation only catches 'ConnectTimeout' exceptions.
Instead we should catch 'Timout' which also catches ReadTimeout
exceptions.

Improves on: #51744

Co-Authored-By: westphahl <westphahl@gmail.com>

* Changelog for winrm error handling improvement
2019-04-01 14:38:52 -07:00
Jordan Borean
707c75ab0b win_user_right - fix non json output issue (#54495)
(cherry picked from commit e2d2874d81)
2019-04-01 14:38:17 -07:00
Jordan Borean
40edb80f39 Get tests working on older Ansible versions 2019-04-01 14:37:42 -07:00
Jordan Borean
2166d4bc48 win_acl - remove test return values
(cherry picked from commit 1034b892df)
2019-04-01 14:37:42 -07:00
Jordan Borean
64eb25eb1d win_acl - fix support for registry paths (#54427)
(cherry picked from commit 10f006036c)
2019-04-01 14:37:42 -07:00
Felix Fontein
e1c53bdfed openssl_publickey: fix handling of OpenSSH private keys with passphrase (#54192)
* Cleanup.
* Make sure that OpenSSH passphrases are handled correctly.
* Add changelog.

(cherry picked from commit 1a94cf140c)
2019-03-22 11:16:28 -07:00
Matt Clay
d983dbad27 [stable-2.6] Disable failing azure_rm_managed_disk test.
(cherry picked from commit 1a286a95e5)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-03-21 07:10:50 -07:00
Matt Clay
0e4558e805 [stable-2.6] Add constraint for deepdiff.
(cherry picked from commit 9a135fbcef)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-03-19 15:19:09 -07:00
Jordan Borean
92b3c3a65b win_file - fix glob like paths (#54003)
(cherry picked from commit c053bc1fc7)
2019-03-19 11:09:35 -07:00
Jordan Borean
1859c5bac6 win_copy - fix glob like paths (#54006)
(cherry picked from commit 2f1bc34589)
2019-03-19 11:09:35 -07:00
Jordan Borean
fed3df4d44 win_certificate_store - fix glob like paths (#54007)
(cherry picked from commit eb18df1a0f)
2019-03-19 11:09:35 -07:00
Jordan Borean
7c800167c0 win_find - fix glob like paths (#54005)
(cherry picked from commit 8a4079ddbf)
2019-03-19 11:09:35 -07:00
Jordan Borean
0429b10ddc Merge pull request #53845 from jborean93/win-paths-2.6
Windows - Fix issues with glob like path chars - 2.6
2019-03-18 14:35:28 -07:00
Toshio Kuratomi
00a02574c2 Make the timeout decorator raise an exception out of the function's scope (#49921)
* Revert "allow caller to deal with timeout (#49449)"

This reverts commit 63279823a7.

Flawed on many levels

* Adds poor API to a public function
* Papers over the fact that the public function is doing something bad
  by catching exceptions it cannot handle in the first place
* Papers over the real cause of the issue which is a bug in the timeout
  decorator
* Doesn't reraise properly
* Catches the wrong exception

Fixes #49824
Fixes #49817

* Make the timeout decorator properly raise an exception outside of the function's scope

signal handlers which raise exceptions will never work well because the
exception can be raised anywhere in the called code.  This leads to
exception race conditions where the exceptions could end up being
hanlded by unintended pieces of the called code.

The timeout decorator was using just that idiom.  It was especially bad
because the decorator syntactically occurs outside of the called code
but because of the signal handler, the exception was being raised inside
of the called code.

This change uses a thread instead of a signal to manage the timeout in
parallel to the execution of the decorated function.  Since raising of
the exception happens inside of the decorator, now, instead of inside of
a signal handler, the timeout exception is raised from outside of the
called code as expected which makes reasoning about where exceptions are
to be expected intuitive again.

Fixes #43884

* Add a common case test.

Adding an integration test driven from our unittests.  Most of the time
we'll timeout in run_command which is running things in a subprocess.
Create a test for that specific case in case anything funky comes up
between threading and execve.

* Don't use OSError-based TimeoutError as a base class

Unlike most standard exceptions, OSError has a specific parameter list
with specific meanings.  Instead follow the example of other stdlib
functions, concurrent.futures and multiprocessing and define a separate
TimeoutException.

* Add comment and docstring to point out that this is not hte Python3 TimeoutError

(cherry picked from commit bd072fe83a)
2019-03-18 14:35:04 -07:00
Jordan Borean
19dfb2f396 Handle binary files when scanning metadata in python 3 (#53773)
(cherry picked from commit c2466c545b)
2019-03-18 14:34:27 -07:00
Jordan Borean
a36b86c0c0 win_psexec: make the tests more stable (#53716)
(cherry picked from commit 33939f7fe8)
2019-03-18 14:33:40 -07:00
Matt Clay
b4aa70e0a1 [stable-2.6] Changelog lint and generation bug fixes. (#53792)
* Add missing dict entry for changelog generation.
* Enforce str and list types on sections.
* Check type of section list items.
* Support non-ascii characters in changelogs..
(cherry picked from commit 90a38670be)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-03-15 10:11:02 -07:00
Jordan Borean
7ee89d4ac6 win_chocolatey Fix incompatibilities with latest Chocolcatey release 2019-03-15 10:10:41 -07:00
Toshio Kuratomi
995a7e6453 Update Ansible release version to v2.6.15.post0. 2019-03-14 21:39:41 -07:00
Toshio Kuratomi
dd6a174ff0 New release v2.6.15 2019-03-14 20:21:57 -07:00
Matt Clay
2cae458ba9 [stable-2.6] Keep existing to_yaml behavior with pyyaml >= 5.1. (#53772)
In pyyaml versions before 5.1 the default_flow_style for yaml.dump
was None. Starting with 5.1 it is now False. This change explicitly
sets the value to None to maintain the original to_yaml behavior.

The change to pyyaml was made in the following commit:

507a464ce6
(cherry picked from commit 7f0e09aa31)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-03-13 18:30:30 -07:00
S
4c3a5629b3 Fixed win_file crash with hidden files (#52584)
* Fixed crash with hidden files

added "-force" parameter on "Get-Item" cmdlet. this is needed to get file info if the file is "hidden" 
without this option modules like win_file, win_template, win_copy crashes on hidden files. this is because with "test-path" it sees that the file exists, but "get-item" can't get the file info. 
for more information on "-force option": https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-item

* Add changelog and integration tests

* fix tests for older Windows versions

(cherry picked from commit 3bc474bf99)
2019-03-11 11:50:10 -07:00
Jordan Borean
1e8b9daaa2 win_domain: fix issue when running without credential delegation (#53480)
* win_domain: fix issue when running without credential delegation

* Add check for reboot is required to complete role e install

* Fix changelog sanity issue

* removed meta file accidentally committed

(cherry picked from commit 008db85d44)
2019-03-11 11:49:48 -07:00