Commit Graph

29830 Commits (360703234e29c4028ca3a2415604441a45ff8040)
 

Author SHA1 Message Date
Toshio Kuratomi 360703234e add changelog 7 years ago
Toshio Kuratomi 25c95a96a8 Fix for ansiballz filenames conflicting with python stdlib modules
The AnsiBallZ wrapper is transferred to the remote machine with
a filename similar to the Ansible-module it runs.  For modules like copy
and tempfile, this can end up conflicting with stdlib modules on the
remote machine depending on how python is setup there.  We have a little
bit of code in the wrapper to deal with this by removing the path that
the ansible module resides in from sys.path.

On MacOSX, that code was having a problem.  The path the module ends up
in included a symlinked directory so we were looking for a path in
sys.path but we had to look for the unsymlinked path instead.

Fix that by using os.path.realpath() instead of os.path.abspath()

(cherry picked from commit 15902f2496)
7 years ago
John R Barker 46846b1973 docs: fix community meetings link (#27264) (#27586)
(cherry picked from commit 9c50933a80)
7 years ago
Abhijeet Kasurde d0a1679113 [Backport] Multiple fixes for vmware_guest_facts (#27464)
* Updated Folder documentation
* Updated Example
* Updated imports
* Added correct logic to use FindByInventoryPath() API
* Remove get_exception in favor of to_native
* Remove redundant get_obj method

Fixes: #24691

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
7 years ago
Abhijeet Kasurde 504558eab3 [Backport] vmware_guest: Fix "KeyError: 'changed'" (#27456)
This is a backport of vmware_guest fix.

Fixes: #27390

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
7 years ago
Matt Clay 6698dc00e3 Add potential work-around for expect on macOS.
http://pexpect.readthedocs.io/en/stable/commonissues.html#truncated-output-just-before-child-exits

(cherry picked from commit 0c7602fb59)
7 years ago
Brian Coca e579afc432 added backports 7 years ago
Brian Coca 96296e8c71 make random_choice more error resilient (#27380)
* make random_choise more error resilient

fixes #27373

(cherry picked from commit b79744f282)
7 years ago
Brian Coca a53cc97f19 ensure prefix in plugin loading to avoid conflicts
when using 'all' to load all plugins were ending in main namespace
creating conflicts with each other and random modulesr
 i.e. when trying to access json callback we were getting json 'parsing' lib

(cherry picked from commit b93b9e68d7)
7 years ago
Jean-Frédéric c276466262 Fix error with `meta: clear_facts` (#26406)
Using `meta: clear_facts` was failing with
`coercing to Unicode: need string or buffer, Host found`

This applies the same fix as 3101e24.

Fixes #26405
(cherry picked from commit 23041c3b6c)
7 years ago
James Cammarata 532b4338f4 New release v2.3.2.0-0.4.rc4 7 years ago
Martin Krizek 7a6c5dd1ab Fix using DNF group upgrade/remove api
(cherry picked from commit 119c9e5d6e)
7 years ago
Brian Coca 8f8d4d103f updated with recent cherry picks 7 years ago
Brian Coca 5b39de5013 better reading of 'facts'
(cherry picked from commit c7e841e0e4)
7 years ago
Toshio Kuratomi 9d435fd47b Add seboolean fix to the changelog 7 years ago
Michael Scherer 1628a25d8d Workaround python-libselinux API change (#25685)
In the past, selinux.security_get_boolean_names did return 'bytes'
on python 3, but this was changed to return string later, cf:
b8711e2eaf

So we have to convert to bytes only if the API return us bytes.

Fix #25651
(cherry picked from commit e2d6ecfa40)
7 years ago
Jason Tibbitts 0a7bad68dc Avoid using deprecated group_install API
DNF's base.group_install() function accepts a string as its first
argument.  Prior to DNF-2, compatibility code existed which allowed this
function to accept a base.comps.Group object instead.  That is no longer
possible.

Pass "group.id" to base.group_install() instead of "group" to work
around this.

(cherry picked from commit ccce74cf7b)
7 years ago
Will Thames 2385e2be27 include_role handlers bug fix (#26335)
* Ensure that include_role properly fires handlers

include_role needs to ensure that any handlers included
with the role are added to the _notified_handler and
_listening_handler lists of the TaskQueueManager, otherwise
it fails when trying to run the handler.

Additionally, the handler needs to be added to the
PlayIterator's `_uuid_cache` or it fails after running
the handler

Add more uuid debug statements - this code was hard
to debug with existing debug statements, so add more
uuid information at little additional output cost.

Fixes #18411

* Add tests for include_role handlers

Tests for #18411

(cherry picked from commit ef8c9798d3)
7 years ago
KeepZero 91f70a4462 Fix performance issue while match pattern in large inventory list 7 years ago
Toshio Kuratomi 28fa228d93 Fix for nonutf8 filenames causing crashes when setting permissions
Fixes #23861

(cherry picked from commit b26ee657b5)
7 years ago
Toshio Kuratomi 795e75433e Expand the result from pwd to make the test more robust
Sometimes MacOSX's pwd doesn't return an expanded path.  Not sure why
but this test is still valid if we expand it via a playbook filter so
go ahead and do that.

(cherry picked from commit 6a41a4f311)
7 years ago
Toshio Kuratomi ddc124297a Update changelog for utf8 recurse files bug 7 years ago
Toshio Kuratomi 9a05efcab9 Fix for to_text and to_bytes error handlers
* surrogate_then_strict doesn't exist.  Switch to surrogate_or_strict
  instead.
* Found some bugs in the _text.py implementation
  * The composed error handlers (error handlers which are made up of two
    or more python encoding error handlers) had a wrong string in it,
    'surrogate_or_escape' doesn't exist.  Replaced that with
    'surrogate_or_replace' which is the correct handler name.
  * Left comment about the implicit conditions that are part of the
    surrogate_then_replace code path

Fixes #23865
Fixes #23861

(cherry picked from commit fc5d71de0d)
7 years ago
Matt Clay 0e0400b12e Disable zypper* tests which are timing out.
(cherry picked from commit d031ff8aec)
7 years ago
Toshio Kuratomi 8eba034942 Add su_pass fix to changelog 7 years ago
Toshio Kuratomi 13901eeb70 Fix legacy su handling (bad conditional would not fire at the right time)
(cherry picked from commit aa9941aaf7)
7 years ago
John R Barker 668266552e Bulk dev_guide from devel to 2.3 (#27205)
* Bulk dev_guide from devel to 2.3

* Scot's feedback
7 years ago
John R Barker 065f74f0ee Bulk import network doc changes from devel to 2.3 (#27204) 7 years ago
Trishna Guha b66d9cc14e fix nxos_interface state default (#27108)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
7 years ago
James Cammarata a1c15a9277 New release v2.3.2.0-0.3.rc3 7 years ago
John R Barker 316ef8a069 Add make target for printing version (#26657) (#27030) 7 years ago
Ricardo Carrillo Cruz a3817721fc Cherry pick EAPI tearup/down tests changes (#26938)
* Replace Ethernet5 for Ethernet2 on eos integration tests (#26674)

In our CI, we only have 3 NICS: Management1, Ethernet1 and
Ethernet2.
(cherry picked from commit 4006b5d18f)

* Add CHANGELOG entry
7 years ago
Ricardo Carrillo Cruz 4490cc9e9e Cherry pick eapi tearup down changes (#26935)
* Remove enable EAPI from prepare_eos_tests (#26910)

Enabling EAPI is not common on CLI *and* EAPI tests, therefore
enabling it should be put at the eapi.yaml task level.
(cherry picked from commit 258d2058cd)

* Add missing provider on disable eapi tasks (#26928)

(cherry picked from commit 4532c791fd)

* Add CHANGELOG entry
7 years ago
Ricardo Carrillo Cruz 32b4342209 Cherry pick 2.4 eos banner fixes (#26904)
* Fix multiple EOS EAPI code and test issues (#26651)

(cherry picked from commit b81209c187)

* Fix eos_banner basic-motd eapi asserts (#23398)

The commands in EAPI does not contain the plain command sent to the
device as a one liner, but it is split in cmd/input keys.
(cherry picked from commit ce9826d76e)

* Add CHANGELOG entry
7 years ago
Trishna Guha 85e9a07117 privilege escalation for eos integration test (#26597)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
8 years ago
Toshio Kuratomi 23020bf9d9 Revert "postgresql_user: fix bugs related to 'expires' option (backport #23862) (#26539)"
This reverts commit 5432414c9d.
8 years ago
Pilou 5432414c9d postgresql_user: fix bugs related to 'expires' option (backport #23862) (#26539)
* Change 'valid until' even it's the only updated field

(cherry picked from commit 460d932aa8)

* value is changed when another value is provided

(cherry picked from commit 460d932aa8)

* value isn't returned when unset

(cherry picked from commit 460d932aa8)

* Fix comparison between user input and applied configuration

(cherry picked from commit 460d932aa8)
8 years ago
James Cammarata 022ba4fbea New release v2.3.2.0-0.2.rc2 8 years ago
Matt Clay 71444d0c37 Update CHANGELOG.md to include wait_for fix. 8 years ago
Matt Clay 154b0d2210 Fix wait_for with newer versions of psutil. (#26455)
* Add support for newer psutil versions.

(cherry picked from commit 895e6c5d06)
8 years ago
Ganesh Nalawade 4deb45eff6 Making iosxr check_args call module_util/iosxr check_args. Fixes #25501 (#26261) (#26444)
(cherry picked from commit 1d62283796)
8 years ago
Jordan b223c7e0a2 changelog: fix for win_chocolatey where it didn't fail if the version did not exist 8 years ago
Dag Wieers ffadbf680d win_chocolatey: Ensure chocolatey to fail (#26416)
Currently chocolatey is not failing when the user requests version X,
but version X is not available in the repository.

Obviously the module should fail in this case.

This fixes #25393
(cherry picked from commit b9d018885a)
8 years ago
Jordan 29ac96e09e changelog: added fix for win_regedit and idempotency on dwords 8 years ago
Jordan Borean 7f5a0715bf win_regedit: fix for same dword value (#26415)
(cherry picked from commit 8e9d04043a)
8 years ago
Jordan 8ced21101f changelog: added win_chocolatey upgrade of all packages fix 8 years ago
Dag Wieers 69175a5077 win_chocolatey: Fix updating 'all' packages (#26417)
This fixes #15018
(cherry picked from commit 69ade22243)
8 years ago
René Moser 333d177325 changelog: add backported fixes by me (#26403) 8 years ago
René Moser 0c8459b01b cloudstack: cs_instance: fix KeyError: 'sshkeypair' (#26399)
(cherry picked from commit 37b22673fb)
8 years ago
Brian Coca fa65417ba0 updated with change 8 years ago