Commit graph

36198 commits

Author SHA1 Message Date
Sam Doran
e02b237649 Do not try to add an entry if none exist (#37152) (#37213)
When commit revisions are disabled, there will be no revision items returned.
Add note about setting ANSIBLE_PERSISTENT_COMMAND_TIMEOUT to a higer value to avoid timeouts.

(cherry picked from commit 3134ba6bee)
2018-03-08 14:55:43 -08:00
Jordan Borean
acef6d25b1 powershell: backport environment string handler fixes 2.5 (#37223)
* win: handle non string as an environment value (#37215)

* win: handle non string as an environment value

* Changed powershell environment handler to use .net function instead for special chars

(cherry picked from commit 708869edd6)

* Added changelog fragement for powershell environment handler fix

* typo in changelog
2018-03-08 14:49:22 -08:00
Toshio Kuratomi
044aa1cb73 Fixing module docs so they dont show up as a list on ansible docs. (#37203) (#37218)
* Fixing module docs so they dont show up as a list on ansible docs.

* Fixing spacing in description.

(cherry picked from commit df0f9d1d91)
2018-03-08 13:23:38 -08:00
John R Barker
4df0be4b1b stable-2.5 docs in sync with devel (#37214) 2018-03-08 12:04:16 -08:00
René Moser
9e315f15ee
cs_instance: fix py3 user_data base64 (#37135) (#37199)
* cs_instance: tests: reproduce py3 user_data base64 issue

* cs_instance: fix base64 encoding with py3

(cherry picked from commit 0130490faa)
2018-03-08 17:57:14 +01:00
René Moser
51bf373fd1
vultr: fix py3 compat (#37171) (#37195)
* vr_server: fix base64 encoding with py3

* vultr: fix AttributeError with py3

(cherry picked from commit 4b6b2d4206)
2018-03-08 17:55:11 +01:00
Abhijeet Kasurde
4477ce809f VMware: Re-enable VM poweroff testcases (#36734) (#36765)
This testcases were failing due to vcsim version.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 87d6bdaf98)
2018-03-08 08:40:09 -08:00
flowerysong
bb3cbac738 Backport #36685 for stable-2.5 (#36686)
* zfs: Fix handling of parameters passed via check_invalid_arguments

cc7a5228 had a typo, so the merged set of arguments was shoved into the
wrong parameter and ignored.

`origin` is an actual module parameter and should be processed like one.

pop()ing makes debug output misleading.

* zfs: fix command generation for `zfs snapshot`

Creating a snapshot and supplying an origin are mutually exclusive,
but were not treated as such. We should throw an error instead of
running an invalid command (`zfs snapshot origin foo@snapname`.)
2018-03-08 08:35:39 -08:00
Abhijeet Kasurde
fb8a9d4e79 VMware: Add missing state param in argument spec (#36339) (#36487)
This fix adds missing argument parameter called 'state'
and its documentation.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 77b903bd85)
2018-03-08 08:28:20 -08:00
Felix Fontein
d06f8dda3b Using correct content type (as per version 10 of ACME draft). (#37165) (#37190)
* Using correct content type (as per version 10 of ACME draft).

* Another incompatibility with ACME v2: body must be {} and not contain v1 data (Pebble fails otherwise).

(cherry picked from commit 155adb1631)
2018-03-08 16:55:49 +01:00
David Newswanger
7213d0017b
fix NIOS DNS lookup example (#36737) (#37139)
(cherry picked from commit 905b3e2f65)
2018-03-08 10:55:20 -05:00
Trishna Guha
2e145cd1f2
fix nxos_switchport/l2_interface trunk_vlans state absent (#37180) (#37181)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
(cherry picked from commit 02999b77a4)
2018-03-08 18:22:43 +05:30
John R Barker
934d1df0d1
2.5 network changelog (#37179)
Add details of major Network features added in Ansible 2.5
2018-03-08 12:38:04 +00:00
John R Barker
e6effb32b8
Update developing_api.rst (#37108) (#37178)
Fix for #17716 and #36110
(cherry picked from commit 19f92005b9)
2018-03-08 10:54:29 +00:00
René Moser
193687851b
cs_instance: fix error when state destroyed but querying user_data (#37175)
(cherry picked from commit 190d3fbbed)
2018-03-08 11:40:31 +01:00
John R Barker
bfceaf696c
yum is Python 2 only. If Python 3 use dnf (#37140) (#37172)
* PY3 = dnf

Red Hat are unlikely to provide a Python 2 version of the yum bindings
as they are moving to `dnf`.

If Ansible can't find the yum Python library give the user a hint about
dnf and Python 3

(cherry picked from commit 6c8d40f653)
2018-03-08 08:36:30 +00:00
Toshio Kuratomi
0fd9c9b014
Bkprt unarchive fix (#37159)
* Fix unarchive with strip-components in extra_opts (#37048)

* Fix unarchive with strip-components in extra_opts

When unarchive is given extra_opts to strip all leading directories, it
could end up trying to change the permissions on the root directory.
Tar archives shouldn't contain absolute paths anyways so make sure that
all paths are relative as we handle them.

Fixes #21397

(cherry picked from commit cca0ccaf97)
2018-03-07 18:41:29 -08:00
Jordan Borean
09de6dc020
win_uri: backport return value fix for non 200 responses (#37156)
* win_uri: return response info on non 200 responses, convert DateTime values to ISO 8601 (#37104)

(cherry picked from commit c1f5e11cdf)

* Added changelog fragment for win_uri return value fix
2018-03-08 10:38:32 +10:00
Matt Martz
3b1be8d881
Backport #37151 for 2.5 (#37154)
* Add ansible-config and ansible-inventory to setup.py scripts (#37151)

(cherry picked from commit bd43776acf)

* Add changelog entry for #37151
2018-03-07 17:02:54 -06:00
René Moser
f230d8e9c4 cs_router: fix missing doc (#37107)
* cs_router: fix missing doc

* update ignore.txt

(partly cherry picked from commit e1297af18a)
2018-03-07 19:12:25 +01:00
René Moser
c054527d65 cs_ip_address.py: fix missing doc (#37109)
* cs_ip_address.py: fix missing doc

* update ignore.txt

(partly cherry picked from commit 67d8c8f5c6)
2018-03-07 19:12:25 +01:00
Anil Kumar Muraleedharan
895d9abd7b 2.5lenovo license update (#37118)
* Syncing with the latest License information in main branch

* Adding License to 2.5 branch
2018-03-07 14:11:47 +00:00
René Moser
0c4d8a9ce5 cloudstack: fix common E324 in docs (#37082) (#37119)
Notes about precedence of common args.

(partly cherry picked from commit 2559e832df)
2018-03-07 13:39:36 +00:00
Trishna Guha
ee67c6c1e3
fix nxos_l2_interface tests for fretta (#37086) (#37101)
(cherry picked from commit b7bc61c7df)
2018-03-07 10:42:16 +05:30
TJ Tang
4bb5f40e99 Fixes #37042 (#37044)
* correctly check that the no_device attribute is specified
 * ignore volume_size requirement if no_device is specified
2018-03-07 09:39:42 +10:00
Nathaniel Case
2be960f84a
Don't fail on configure in command (#37094)
* Don't fail on configure in command

* Change test to check mode

(cherry picked from commit efb8b539c1)
2018-03-06 18:24:43 -05:00
Nathaniel Case
b1f8fd7edb
Fix side-effect of flags being passed to ios get_config again (#37084) (#37085)
(cherry picked from commit f0dc0b28d4)
2018-03-06 18:09:34 -05:00
Jordan Borean
33773624fb
win_wait_for: fix local port check on port not accessible externally (#37093)
* win_wait_for: use loopback IP instead of hostname if 127.0.0.1 is used (#36762)

* win_wait_for: use loopback IP instead of hostname if 127.0.0.1 is used

* removed reverse dns lookup in port check

(cherry picked from commit 67ffde4ac1)

* Added changelog for win_wait_for local port fix
2018-03-07 08:55:39 +10:00
Jordan Borean
f0a808e02c Win lineinfix fix (#36888)
* Win lineinfile fix (#35100)

* win_lineinfile: fix #33858. Removed conversion from \r\n

* win_lineinfile: added test for #33858

* win_lineinfile: added documentation and more tests for change

* win_lineinfile: fixed wrong hash in testing

(cherry picked from commit e15a903bdf)

* Added changelog for win_lineinfile fix

* fix typo in changelog
2018-03-06 13:05:31 -08:00
John R Barker
471e75a019
Fix consul module service deregistration (#34847) (#37089)
* Fix consul module service deregistration

Upstream pr in the python-consul library:
https://github.com/cablehead/python-consul/pull/174

This is based on work from https://github.com/bobh

Fixes ansible/ansible#34628

* Pass ACL token when deregistering consul service

(cherry picked from commit c9cb0016a0)
2018-03-06 20:28:03 +00:00
Toshio Kuratomi
4ad30ad9b5 Clarify Docker SDK rather than Docker API 2018-03-06 09:00:26 -08:00
Toshio Kuratomi
111c2d6c1f Add a changelog fragment for the docker 3 api changes. 2018-03-06 07:08:49 -08:00
John R Barker
fccb6962fe
Network modules to link to network guide (#37033) (#37069)
* Network modules to link to network guide

* Make it clear what's deprecated
* enable -> become
* Detail when provider is still needed (eAPI/NX-API)
* Link to specific sections
* rx_rate & tx_rate to link to conditional docs

(cherry picked from commit ebc71bcb16)
2018-03-06 12:40:25 +00:00
Chris Houseknecht
c2cc6e4ac8
Add compatibility for docker-py version 3 (#36973) (#37071) 2018-03-06 07:34:02 -05:00
Trishna Guha
5ec5c05f0d
remove unused tx_rate and rx_rate from vyos_interface (#37062) (#37064)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
(cherry picked from commit 5f3feac7fa)
2018-03-06 17:03:53 +05:30
John R Barker
c4cb7daa6b
Link to new network platform pages (#37057) (#37058)
Also fix a few broken links
(cherry picked from commit 7a4e270ae0)
2018-03-06 09:34:40 +00:00
John R Barker
e03b17e2e5
filesystem: fix documentation (#36556) (#36633)
(cherry picked from commit 07927f52ae)
2018-03-06 08:35:54 +00:00
Trishna Guha
f48d636500
Fix n3k separate to combined image upgrade (#37017) (#37055)
* Fix n3k separate to combined image upgrade

* Address review comments

(cherry picked from commit 51e8eab9db)
2018-03-06 10:40:02 +05:30
Ganesh Nalawade
bbf27efe06
Fix eos integration test failures (#37020) (#37054)
Fixes #36919

Fix other eos modules integration test failure in dci
(cherry picked from commit ba3201cd2f)
2018-03-06 10:24:54 +05:30
Toshio Kuratomi
38a498bcfd
Bkprt py3 maven artifact (#37041)
* Python3 issues in maven_artifact (#37035)

Fixes #33761

(cherry picked from commit 1bc860fafd)

* Add a changelog for the python3 maven_artifact fix
2018-03-05 18:48:29 -08:00
Ryan Petrello
422e4aa310 properly pass /api/v1/ credential fields for older Towers (#36917)
(cherry picked from commit 0e7106b106)
2018-03-05 21:19:13 +00:00
Ryan Petrello
ee4578c4cd properly detect the absence of credential_type in older tower-cli (#36908)
(cherry picked from commit a82043939b)
2018-03-05 21:19:13 +00:00
Sam Doran
2bcc02e653 Add changelog fragment 2018-03-05 21:19:13 +00:00
Ryan Petrello
f0e65cb05a tower cred: support credential kind/type for /api/v1/ and /api/v2/ (#36662)
older versions of Tower (3.1) don't have a concept of CredentialTypes
(this was introduced in Tower 3.2).  This change detects older versions
of pre-3.2 tower-cli that *only* support the deprecated `kind`
attribute.

(cherry picked from commit 641f8b4ef6)
2018-03-05 21:19:13 +00:00
Ryan Petrello
644b116848 tower cred: update kind options in documentation
(cherry picked from commit 8a41233202)
2018-03-05 21:19:13 +00:00
Ryan Petrello
86cc8ae591 tower cred: filter user name lookup by the proper key
(cherry picked from commit cd6855275e)
2018-03-05 21:19:13 +00:00
Ryan Petrello
1a412d49bf tower cred: implement credential /api/v1/ kind compatability
(cherry picked from commit 9cb4b70e27)
2018-03-05 21:19:13 +00:00
Thierry Bouvet
8cc9abcd75 Fix credentials for Tower API V2
(cherry picked from commit 640749d54f)
2018-03-05 21:19:13 +00:00
Toshio Kuratomi
9711c60b01
Bkprt py3 znode (#37038)
* fix python3 compatibility for znode module

kazoo client requires bytes and not string

(cherry picked from commit 2d98a2de68)
2018-03-05 13:01:48 -08:00
John R Barker
a50b332768
Support <hr/> in module docs (#37030) (#37031)
(cherry picked from commit 0a2dda2060)
2018-03-05 19:20:37 +00:00