Commit graph

40568 commits

Author SHA1 Message Date
Jill R
b65984981f [stable-2.7] Fix STS assume role error message when role does not exist (#63249)
AWS appears to have changed this error message again.
Fixes https://app.shippable.com/github/ansible/ansible/runs/145643/115/tests
(cherry picked from commit ce402f003f)

Co-authored-by: Jill R <4121322+jillr@users.noreply.github.com>
2019-10-14 14:18:46 -07:00
Matt Martz
40618d70e6 [stable-2.7] Wrap CLI passwords as AnsibleUnsafeText (#63352) (#63392)
* [stable-2.7] Wrap CLI passwords as AnsibleUnsafeText (#63352)

* isa string should rewrap as unsafe in get_validated_value

* _is_unsafe shouldn't be concerned with underlying types

* Start with passwords as text, instead of bytes

* Remove unused imports

* Add changelog fragment

* Update changelog with CVE.
(cherry picked from commit baeff7462d)

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

* Update tests
2019-10-11 10:31:10 -07:00
Toshio Kuratomi
90e74dd260 Fix for plugins which used the boto libraries leaking the boto credentials to logs
(cherry picked from commit 3753304d209f2fdc28f0b2ebf1e139eb3d8c22b1)

https://github.com/ansible/ansible/pull/63366
2019-10-10 21:21:45 -07:00
Dag Wieers
c2f528b768 Fix whitespace issue in filter (backport 2.7)
This fixes reported issue #60276

This is a backport of #62768
2019-10-08 09:14:02 -07:00
Matt Clay
537dcebbe4 Fix pylint issue. 2019-10-01 16:16:47 -07:00
Matt Clay
634a1e2782 Limit Shippable matrix check to ansible repo.
(cherry picked from commit ada02f1966)
2019-10-01 16:16:47 -07:00
Matt Clay
6b4d2e2267 Replace old shippable.py with new check_matrix.py. (#60022)
This new script does not depend on ansible-test and provides much more robust job matrix testing.

It is also run on every job in the matrix now, to detect issues with jobs being re-run after matrix changes are made.

(cherry picked from commit d3da8e4a5b)
2019-10-01 16:16:47 -07:00
Sandra McCann
1f0a1d9e10 backport #62611 (#62618) 2019-09-19 14:31:11 -05:00
Matt Clay
34b1ded2cb [stable-2.7] Mark ansible-test cloud credentials as sensitive..
(cherry picked from commit 9f7b124a6f)

Co-authored-by: Matt Clay <matt@mystile.com>.
2019-09-17 18:10:43 -07:00
Matt Clay
23c33ccb38 [stable-2.7] Mark AWS credentials in ansible-test as sensitive.
This avoids displaying the credentials in CI when retrying tests at maximum verbosity.
(cherry picked from commit b73e772)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-09-17 13:31:39 -07:00
Matt Clay
dec03d06c8 [stable-2.7] Redact sensitive values by default in ansible-test.
(cherry picked from commit 0631e057e9)

Co-authored-by: Matt Clay <matt@mystile.com>.
2019-09-17 13:18:42 -07:00
ndclt
9f2acf2f2a documentation: modify the link to the docker.txt listing all images (#61838) (#61850)
The file was moved.

(cherry picked from commit aadb192846)
2019-09-05 10:39:01 -05:00
s-hertel
00a65ac1ed Mark aws_s3 tests as unstable 2019-09-04 14:01:44 -07:00
Gonéri Le Bouder
09545a6974 Update Fedora 29 test image
(cherry picked from commit 3d78dad84b)
2019-09-03 21:30:53 -07:00
Simeon Filipov
f9fb595a0b Fix typo in postgresql_privs.py (#61365) (#61428)
Change 'default_prives' to 'default_privs'

(cherry picked from commit 0074fa5672)
2019-08-28 11:42:18 -05:00
Toshio Kuratomi
e32670ef1d Update Ansible release version to v2.7.13.post0. 2019-08-15 19:56:28 -07:00
Toshio Kuratomi
24007b5d4b New release v2.7.13 2019-08-15 14:07:21 -07:00
Matt Clay
62138612c8 [stable-2.7] Start dbus when setting up postgresql tests.
(cherry picked from commit c309570540)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-08-15 13:13:55 -07:00
Brian Coca
d728127310 prevent templating of passwords from prompt (#59246) (#59553)
* prevent templating of passwords from prompt (#59246)

* prevent templating of passwords from prompt

  fixes CVE-2019-10206

(cherry picked from commit e9a37f8e31)

* Improve performane of UnsafeProxy __new__

This adds an early return to the __new__ method of the UnsafeProxy object
which avoids creating the unsafe object if the incoming object is already
unsafe.

(cherry picked from commit c1e23c22a9fedafaaa88c2119b26dc123ff1392e)
(cherry picked from commit 490f17c7f9)
2019-08-12 18:06:35 -07:00
Jordan Borean
6444278f44 Remove Python 2.6 from Windows tests (#60235)
(cherry picked from commit 3a3727d200)
2019-08-09 15:06:40 -07:00
Sandra McCann
6145631302 add eol banner (#59254)
(cherry picked from commit 00699735e9)
2019-08-07 07:23:13 -07:00
Sam Doran
a063287e74 [stable-2.7] Wait for Ansible Tower instance to be ready
(cherry picked from commit ea209e1c2f)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-08-02 13:57:30 -07:00
Matt Clay
2e66d73940 Remove redundant "Sanity Tests »" from page title.
The docs now have multi-level breadcrumbs so including "Sanity Tests »" in the title on a sanity test page is redundant.

(cherry picked from commit b4494fa547)
(cherry picked from commit dd42aac878)
2019-07-26 10:40:55 -07:00
Jordan Borean
cf817e4436 psexec - update example for for delegation example (#59475) (#59481)
(cherry picked from commit 3581e63ca8)
2019-07-25 15:45:00 -05:00
Toshio Kuratomi
8d66a9979a [stable-2.7] Fix nightly rpm release
The nightly rpm builds were using a timestamp from the last git commit
in their Release field.  Unfortunately, that was using author timestamp
which is nonsequential.  Change to using commit timestamp which is
sequential.

note that this still has a cornercase if the branch's history is ever
rewritten.
(cherry picked from commit 97edfcc)

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
2019-07-24 09:49:48 -07:00
Felix Fontein
6ec0632bec [stable-2.7] Re-enable docker_container tests (#59425)
Mark dependent container's ipc_mode as shareable
(cherry picked from commit 266d6e77a9)

Co-authored-by: Felix Fontein <felix@fontein.de>
2019-07-24 09:20:11 -07:00
Sloane Hertel
df7e6c147b disable s3_lifecycle tests (#59311)
(cherry picked from commit 1d3f2c7764)
2019-07-22 19:00:47 -07:00
Wojciech Sciesinski
de3f32df4f Correct a documentation of the jenkins_plugin module (#59330)
It's a backport of #59139
2019-07-22 16:12:23 -05:00
Sam Doran
3f0de5c438 [stable-2.7] Improve setup_docker tests to work with RHEL 8 GA (#58649)
- use include_vars to set appropriate packages and pip packages per distribution and version
- install an older version of Docker CE on RHEL 8 since a dependency is unavailable
- disable warnings on tasks that are ok
- skip tests for CentOS/RHEL 6.
(cherry picked from commit d50c8c2b83)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-17 15:37:46 -07:00
Sam Doran
9b1575cfeb [stable-2.7] Improve dnf test formatting and fix RHEL 8 module name (#58648)
- use single include_vars task rather than multiple set_fact tasks
- use multi-line YAML to break up long conditionals
- use version() test rather than direct comparisions
- use different appstream package on RHEL since '@swig:3.0/default' is not working in the GA.
(cherry picked from commit 16d6fcf514)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-17 15:37:12 -07:00
Sandra McCann
4e63b681f2 Add a banner message to warn when not on latest documentation (#58526) (#58765)
* add banner to versions that are not latest
(cherry picked from commit 35b6345bdc)
2019-07-08 14:21:31 -05:00
Toshio Kuratomi
0d14de6bf6 [stable-2.7] Fix unicode error in changelog generation
(cherry picked from commit fed90ef)

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
2019-07-05 11:47:32 -07:00
Toshio Kuratomi
20f6ba5da8 Update Ansible release version to v2.7.12.post0. 2019-07-03 13:41:32 -07:00
Toshio Kuratomi
1fb35cd857 New release v2.7.12 2019-07-03 09:44:13 -07:00
Toshio Kuratomi
7d4e9b279e [stable-2.7] Skip tests with unsatisfied deps (#55853)
* Skip gitlab tests if dependencies aren't met

* Skip certain unittests if passlib is not installed

* Fix tests with deps on paramiko to skip if paramiko is not installed

* Use pytest to skip for cloudstack

If either on Python-2.6 or the cs library is not installed we cannot run
this test so skip it.
(cherry picked from commit 8acf71f78f)

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
2019-07-01 07:43:51 -07:00
Sam Doran
28816088e4 Make nuage_vspk test more reliable
- don't background the nuage-vsd-sim
- increase the asncy timeout
- use uri to actually query the simulator API to make sure it is ready for connections

(cherry picked from commit 911a2ec6d3)
2019-06-26 14:54:15 -07:00
Matt Clay
1a2bafa510 [stable-2.7] Fix nuage_vspk integration test:
- Wait for API to be ready.
- Enumerate test cases on controller.
(cherry picked from commit 29de0619e8)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-06-26 14:54:15 -07:00
Felix Fontein
b7f15c69b1 [2.7] docsite: remove lexers which have been fixed in Pygments 2.4.0 (#58101)
* docsite: remove lexers which have been fixed in Pygments 2.4.0 (#57508)

* Remove lexers which have been fixed in Pygments 2.4.0.
* Add Pygments >= 2.4.0 to test runner.
* Fix pages that triggered lexer errors.

Co-Authored-By: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
(cherry picked from commit 505c99265c)

* fixes 'could not lex literal_block' errors
2019-06-26 09:05:33 -05:00
markafarrell
e5595cddfa [stable-2.7] also allow None Type for safe eval (#58269)
(cherry picked from commit 8555b72)

Co-authored-by: markafarrell <mark.andrew.farrell@gmail.com>
2019-06-25 18:07:02 -07:00
Alicia Cozine
c7fece19e5
Docs: add Pygments lexer for Ansible output (#50318) (#58356)
* Add specialized lexer for Ansible output.

* Make linter happy.

* Use different tokens.

(cherry picked from commit 9657a21438)
2019-06-25 14:38:11 -05:00
Sam Doran
db11ff2848 [stable-2.7] Add Fedora 30 to test matrix (#57713)
Remove Fedora 28 from test matrix.
(cherry picked from commit 7b9d991f78)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-06-24 14:58:17 -07:00
Matt Clay
4f1ea957bc [stable-2.7] Add work-around for scp issue in tests.
(cherry picked from commit 414ac12ddd)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-06-21 15:38:17 -07:00
Sam Doran
a9288b3c53 [stable-2.7] passwordstore lookup - replace expired GPG key (#58141)
- Replace private key that expired an 2019-06-20 with a key that does not expire
- Document how to generate a new GPG key using an input file
(cherry picked from commit b9d77b997e)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-06-20 15:33:18 -07:00
Alicia Cozine
17cbece6df
Backport/2.7/55655 (#58097)
* Add dropdown version selection to docsite (#55655)

(cherry picked from commit f3720c90e0)
2019-06-19 15:51:52 -05:00
Sam Doran
84c4fb38bd [stable-2.7] Change integration tests in order to pass on Fedora 30 (#58081)
* Use different package for DNF tests
    Ninja caused errors in Fedora 30. This works in both Fedora 29 and 30.

* Fix git integration tests
    Git >= 2.21.0 has either a bug or change in behavior where it errors when fetching a
    repository containing submodules that are behind the upstream submodule commits.
    It's weird and I don't fully understand it.

    Get around this my checking out specific commits from a repository rather than
    switch the origin URL.

* Fix PostgreSQL tests
    The error message is slightly different.
(cherry picked from commit 18feeb51a8)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-06-19 10:10:31 -07:00
Brian Coca
a11c3edfa4 safe_eval fix (#57188)
* just dont pass locals

 - also fix globals
 - added tests

* fixed tests

(cherry picked from commit b9b0b23015)
2019-06-17 17:17:38 -07:00
Alicia Cozine
af6bf131fc
docs: correct default for assemble module remote_src param (#57636)
* docs: correct default for assemble module remote_src param
* update ignore.txt now that test passes
2019-06-10 21:39:36 -05:00
Felix Fontein
1b757b76fb Clarify documentation on dockerfile. (#57570) (#57632)
(cherry picked from commit 433e00c219)
2019-06-10 21:33:56 -05:00
Matt Clay
1049e5e064 [stable-2.7] Limit tests to paramiko < 2.5.0.
(cherry picked from commit 1e6edf2ccc)

Co-authored-by: Matt Clay <matt@mystile.com>
2019-06-10 16:13:39 -07:00
Felix Fontein
755bdc4f15 acme_certificate: fix docs (#57557) (#57568)
* Fix indentation.
* Forgot when condition for second acme_certificate call.

(cherry picked from commit 9d67f476e6)
2019-06-10 10:27:23 -05:00