Commit Graph

51566 Commits (77b66330761ffb2e70c3cc8a6887adf845008a8e)
 

Author SHA1 Message Date
Martin Krizek 77b6633076 [stable-2.11] yum: fix parsing of check-update with subsequent empty lines (#75452)
Rather than adding further complexity to the regex, preprocess the output to
remove any empty lines. Now the only purpose of the regex is to fix
wrapped lines.

Fixes #70949
(cherry picked from commit 51f2f1ac5e)

Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
3 years ago
jamesmarshall24 c65f80cb81
Update Ansible release version to v2.11.12.post0. (#77880) 3 years ago
jamesmarshall24 322366620f
New release v2.11.12 (#77862) 3 years ago
Dimitri Savineau 3c9415c968
Update Ansible release version to v2.11.12rc1.post0. (#77812) 3 years ago
Dimitri Savineau 9818510a0a
New release v2.11.12rc1 (#77811) 3 years ago
Sandra McCann e7dbe1b514
update version switcher to include 2.13 (#77786) (#77797)
(cherry picked from commit f5642cea28)
3 years ago
Brian Coca 67f06ed83c
dont rely on path to set config defs for plugins (#77659) (#77696)
(cherry picked from commit a3cc6a581e)
3 years ago
Martin Krizek d5e5bd34d6
Prevent losing unsafe from lookups (#77609) (#77652)
This patch fixes a bug which under certain conditions results in data
returned from lookups not being marked as unsafe.

Each time Templar.do_template is invoked a new AnsibleContext is
created and stored effectively at two places:
1) as an instance variable in templar_obj.cur_context
2) as a local variable called new_context in do_template method of Templar

Due to custom functionality in Ansible's Context that allows for nested
templating it is possible that during resolving variable's value
template/do_template method is called recursively again, again creating
a new context. At that point the problem manifests itself because as
mentioned in 1) above the context is overwriten on the templar object
which means that any subsequent calls to _lookup will use the new
context to mark it as unsafe which is now different to the local
new_context which is used for testing for unsafe property.

The solution to the problem appears to be to restore the original
context inside do_template and also to eliminate the local variable
new_context to prevent problems in the future.

It appears that we don't have a better way of storing the context other
than as some form of global variable and so this appears to be the
"best" solution possible at this point. Hopefully data tagging will be
the solution here.

For more examples see unit and integration tests included in this patch.

Fixes #77535

(cherry picked from commit 3980eb8c09)
3 years ago
Matt Clay 19415e1238 Remove FreeBSD 11.4 from CI since it is EOL.
Bootstrapping fails due to missing packages.
3 years ago
Christian Adams fee6f50a7e
Update Ansible release version to v2.11.11.post0. (#77632) 3 years ago
Christian Adams cb6ccfda90
New release v2.11.11 (#77627) 3 years ago
Matt Clay 4d31016e85 ansible-test - Fix rstcheck compatibility issues. 3 years ago
jamesmarshall24 d356019be7
Update Ansible release version to v2.11.11rc1.post0. (#77558) 3 years ago
jamesmarshall24 8eb57ec3d4
New release v2.11.11rc1 (#77542) 3 years ago
Sandra McCann 31c7c9158e
Pin antsibull to 0.42.0 (#77539) (#77540)
(cherry picked from commit fbc7502050)
3 years ago
Jordan Borean 8fb813918b
SID - Use literal UPN value when attempting a user to SID lookup (#77334) (#77347)
(cherry picked from commit ff184b0815)
3 years ago
Jordan Borean 874f4323ef
winrm - ensure callers PATH for kinit is set (#77401) (#77402)
* winrm - ensure callers PATH for kinit is set

* Fix unit test expectations

* Fix type annotation

(cherry picked from commit 60b4200bc6)
3 years ago
Tong He 402d914841
Backport #76801 (#77295) 3 years ago
jamesmarshall24 d4458925c6
Update Ansible release version to v2.11.10.post0. (#77379) 3 years ago
jamesmarshall24 653b4fba7a
New release v2.11.10 (#77373) 3 years ago
jamesmarshall24 380ff7f3d6
Update Ansible release version to v2.11.10rc1.post0. (#77331) 3 years ago
jamesmarshall24 f78bc40e6f
New release v2.11.10rc1 (#77328) 3 years ago
Elijah DeLee 8dfe4acba4
[2.11 backport] use same timeout for galaxy api interactions (#77088) (#77143)
* use same timeout for galaxy api interactions (#77088)

Also, bump the default. A number of people have reported problems with
this 20 second timeout for a couple of years on
https://github.com/ansible/galaxy/issues/2302

It is mentioned in the issue that resolving dns can sometimes take up to
30 seconds, and that this timeout includes dns resolution.

Includes a changelog message

* fix type hint

Co-authored-by: Matt Clay <matt@mystile.com>

Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Sloane Hertel 939f843024
[2.11] Fix collection redirects for filter and test plugins (#77210) (#77228)
* Fix collection redirects for filter and test plugins (#77210)

* Fix collection redirects for jinja2 filters/tests

* Handle recursive redirects

Co-authored-by: Matt Martz <matt@sivel.net>
(cherry picked from commit 8063643b4c)

* The error message is only capitalized on 2.13. Make test more flexible.

(cherry picked from commit 734777ef05)
3 years ago
Sloane Hertel ca8835c990
[2.11] ansible-galaxy collection verify - display new files/dirs as modified content (#77129)
* Fix 'ansible-galaxy collection verify' to report files/directories not listed in the FILES.json

(cherry picked from commit a1d467dbb2)

* changelog

(cherry picked from commit 3d49d6f69e)
3 years ago
Matt Martz ef46bc46f4
[stable-2.11] Use full python package for ansiballz cache filenames (#77090) (#77126)
* [stable-2.11] Use full python package for ansiballz cache filenames (#77090)

* Use full python package for ansiballz cache filenames

* Be a little more explicit about test goals
(cherry picked from commit 8cbe143)

Co-authored-by: Matt Martz <matt@sivel.net>

* linting
3 years ago
Matt Clay 7a8c6d7418 ansible-test - Fix cloud plugin traceback. 3 years ago
Christian Adams 995ca083db
Update Ansible release version to v2.11.9.post0. (#77162) 3 years ago
Matt Clay 41a1fe1303 [stable-2.11] Update setup_pexpect to prefer pip user installs.
This works around issues on RHEL 7.9 when an old version of pexpect is installed from an OS package.
(cherry picked from commit 27fe26edbf)

Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Christian Adams 73e6d023b8
New release v2.11.9 (#77157) 3 years ago
Christian Adams adfca2bdc9
Update Ansible release version to v2.11.9rc1.post0. (#77130) 3 years ago
Christian Adams 715fa4fdde
New release v2.11.9rc1 (#77123)
Signed-off-by: Christian M. Adams <chadams@redhat.com>
3 years ago
Matt Clay 1b57ccb7a9 [stable-2.11] ansible-test - Use `--forked` instead of `--boxed`
The `--boxed` option is deprecated..
(cherry picked from commit eaeec8a65c)

Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Matt Clay d6b6c95498 ansible-test - Omit pyopenssl for sanity tests. 3 years ago
Matt Clay d003313544 ansible-test - Add MarkupSafe constraint.
Installation of MarkupSafe 2.1.0 and later require setuptools 39.2 or later,
or a recent version of pip which supports installation using a wheel.

Some systems will not have new enough versions of pip and/or setuptools,
especially virtual environments -- including those created by ansible-test.
3 years ago
Sloane Hertel c6d392d43d [stable-2.11] Use --no-deps when installing amazon.aws and not testing dependencies (#77091)
(cherry picked from commit 88bfb7193e)

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
3 years ago
Matt Clay 79a2ee4bed [stable-2.11] ansible-test - Use quay.io containers in plugins..
(cherry picked from commit c27fd777f4)

Co-authored-by: Matt Clay <matt@mystile.com>
3 years ago
Brian Coca 5c2251504c
ssh connection: use 'correct' host in all cases (#76017) (#76969)
ssh plugin, use 'correct' information source in all cases
  * still fallback to pc
  * added inventory to new test
  * undef var can still show as parser error on pc
    now task_exectuer has a  more accurate error handling

(cherry picked from commit be19863e44)
3 years ago
Brian Coca f7f27ade2d
gather_facts sees collection networking connection (#76954) (#76964)
needed to properly propagate some arguments by convention: subset, filter

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
(cherry picked from commit 5bddecb048)
3 years ago
Brian Coca ee112d9984
fix block var inheritance (#75287) (#76897)
* updated tests to conform to new block inheritance

Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com>
Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
(cherry picked from commit b1d6750e8b)
3 years ago
Brian Coca 6916e152ff
clean_facts only show variable name (#76974) (#76985)
(cherry picked from commit 47faa6e206)
3 years ago
Matt Clay 906642edc4 ansible-test - Install pyopenssl w/ cryptography.
ci_complete
3 years ago
Matt Clay cc97353702
[stable-2.11] ansible-test - Use relative paths in junit output. (#76909)
* [stable-2.11] ansible-test - Use relative paths in junit output. (#76871)

* ansible-test - Use relative paths in junit output.
* ansible-test - Handle out-of-tree JUnit paths.
* Also fix a traceback in the junit callback during automatic fact gathering.

(cherry picked from commit fbb5d56bd2)

* Fix task path unicode error in junit callback.

(cherry picked from commit 41db6d8d35)
3 years ago
Dimitri Savineau 4081c8d239
Update Ansible release version to v2.11.8.post0. (#76905) 3 years ago
Dimitri Savineau e40051f7c0
New release v2.11.8 (#76891) 3 years ago
Matt Clay 380033afcf Remove centos8 from CI.
CentOS 8 has been EOL for ~1 month now.
3 years ago
Dimitri Savineau 80c9a74c55
Update Ansible release version to v2.11.8rc1.post0. (#76833) 3 years ago
Dimitri Savineau f0bcb858a9
New release v2.11.8rc1 (#76830) 3 years ago
Brian Coca a280645022
service_facts, now more accurate on systemd (#75326) (#76018)
* service_facts, now more accurate on systemd

(cherry picked from commit 82bab063e7)
3 years ago
Brian Coca 6b4fcdf59f
bacwards compat doc frag (#75819) 3 years ago