Commit graph

40544 commits

Author SHA1 Message Date
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
Ed Costello
5dcb20dfdb Replace links to AWS module guidelines with links to devel docsite since (#57466)
the GUIDELINES.md has been moved to the docsite.
2019-06-10 09:56:28 -05:00
Sandra McCann
31fc9f9260 backport 57316 (#57424) 2019-06-05 15:27:27 -05:00
Felix Fontein
0b5ab1e041 Fix assignments in docker tests. (#57249)
(cherry picked from commit 7cd229aa97)
2019-06-03 08:40:13 -07:00
Martin Krizek
fa1cef7190 ansible-test: prefer shlex.quote (#56823)
(cherry picked from commit 484c023316)
2019-05-28 12:42:49 -07:00
Matt Martz
634690ede5 [stable-2.7] Validate types before asserting lengths (#56882)
(cherry picked from commit 9c5b721)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-05-24 09:11:52 -07:00
Toshio Kuratomi
4c40e88851 Update Ansible release version to v2.7.11.post0. 2019-05-23 12:38:41 -07:00
Toshio Kuratomi
a25e32f247 New release v2.7.11 2019-05-23 10:44:05 -07:00
Matt Clay
e045506876 [stable-2.7] win_get_url: ignore defender false positive in tests (#56825)
* [stable-2.7] 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:11 -07:00
Alicia Cozine
52de0b4e61
Removed misleading padding from highlighted results of a search query (#55464) (#56654)
(cherry picked from commit 0330ea616e)
2019-05-21 12:52:33 -05:00
Alicia Cozine
c452837c5d
Backport/2.7/docs default lists (#56667)
* 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:48:59 -05:00
Alicia Cozine
9e9db8a17d
Speed up the Sphinx documentation build (#55593) (#56662)
* speeds up the docs build by changing the navigation collapse setting

(cherry picked from commit 47a440774f)
2019-05-21 11:25:35 -05:00
Bill Dodd
61643874f2 Expose timeout option to Redfish modules
(cherry picked from commit d8536e47d3)
2019-05-20 18:33:27 -07:00
Nilashish Chakraborty
aa616b436c Fix VyOS cli prompt issues (#56389)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
(cherry picked from commit 30ccc8e1bd)

Add changelog for vyos prompt fix
2019-05-20 18:18:25 -07:00
Sumit Jaiswal
85b21c2c9b Backport PR for fixing NIOS_ZONE module idempotency (#56346)
* To fix the issue where nios_zone module was running second time for same object (#55595)

* fix for 55128 issue

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* review comment fix

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
(cherry picked from commit 661f7be0fe)

* changelog for 2.7 backport

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* changelog for 2.7 backport

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* shippable fix

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
2019-05-20 18:17:25 -07:00
Lars Kellogg-Stedman
a8e14cfe1f connection/docker: add privilege escalation support
As described in #53385 (and #31759), the docker connection driver did
not support privilege escalation. This commit is a shameless
cut-and-paste of the privilege escalation support from the `local`
connection plugin into the `docker` plugin.

This is a backport to stable-2.7 of #55816.
2019-05-20 18:14:48 -07:00
Strahinja Kustudic
6bc671a46a Backport/2.7/55695 (#56253)
* sysctl will now return an error if the value is invalid

sysctl can fail to set a value even if it returns an exit status 0. More
details: https://bugzilla.redhat.com/show_bug.cgi?id=1264080. Because of
this in case of an invalid value or a read-only file system, sysctl
module would return OK, even though it didn't set anything. To be sure
that sysctl correctly applied the changes we also need to check the
output of stderr.

(cherry picked from commit 0432b7f2522dbf82c4fabdb3fd17f7ac83f34e62)

* Run sysctl with LANG=C

Because we are parsing sysctl stderr we need to make sure that errors
are persistent across different system language settings.

(cherry picked from commit a16128f778b1e7574c5986aed26e146ac0561533)

* Add changelog fragment for sysctl

(cherry picked from commit 3ad9d4d83c1d2bbfccefb8388904c596d98f8731)
2019-05-20 18:10:31 -07:00
Paul Belanger
9c670d9d05 Fix vyos_command integration test (#56091)
This has been broken for some time, but only noticed recently.  Because
vyos_command isn't supported on ansible_connection=local, update our
testing to account for that.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
(cherry picked from commit 59d20e004e)
2019-05-20 17:11:34 -07:00
Alicia Cozine
2d414b2778
Update default roles_path documentation (#56320) (#56665)
(cherry picked from commit c1ebc8d9c2)
2019-05-20 17:11:43 -05:00
Alicia Cozine
f4ce200b97
creates reversed glob TOCs for porting guide and roadmap index pages (#56655) 2019-05-20 17:10:11 -05:00
Alicia Cozine
dca3154f8c
clean backport of PR 56355 (#56651) 2019-05-20 17:07:49 -05:00
EvgenyF
634b89ac01 [stable-2.7] Changing the license to Apache 2
(cherry picked from commit ea4842c0d3)

Co-authored-by: EvgenyF <evgenyf@radware.com>
2019-05-20 12:31:29 -07:00
Sandra McCann
84ade9f7b6 fix backport issues (#56648) 2019-05-20 13:28:29 -05:00
Felix Fontein
d9d5cca69e oom_killer and oom_score_adj are available since docker-py 1.8.0. (#56012)
* oom_killer and oom_score_adj are available since docker-py 1.8.0.

* Add changelog.

(cherry picked from commit f692261ea0)
2019-05-20 11:12:35 -07:00
Felix Fontein
13862f8f34 Adjust to stable-2.7 return value names. 2019-05-20 09:26:33 -07:00