community.general/lib/ansible/module_utils
Adam Miller 6d95624c22 Refactor yum and dnf, add feature parity (#43621)
* Refactor yum and dnf, add feature parity

Signed-off-by: Adam Miller <admiller@redhat.com>

* remove unnecessary module_utils, move the classes into the module code

Signed-off-by: Adam Miller <admiller@redhat.com>

* remove yum -> yum4, out of scope

Signed-off-by: Adam Miller <admiller@redhat.com>

* use ABCMeta

Signed-off-by: Adam Miller <admiller@redhat.com>

* re-arrange run() caller vs callee

Signed-off-by: Adam Miller <admiller@redhat.com>

* make sanity checks happy

Signed-off-by: Adam Miller <admiller@redhat.com>

* fix yum unit tests

Signed-off-by: Adam Miller <admiller@redhat.com>

* remove unecessary debug statements, fix typo

Signed-off-by: Adam Miller <admiller@redhat.com>

* fix licensing and attribution in yumdnf module_util

Signed-off-by: Adam Miller <admiller@redhat.com>

* include fix from PR 40737

original commit 5cbda9658a
original Author: Strahinja Kustudic <kustodian@gmail.com>

yum will fail on 'No space left on device', fixes #32791 (#40737)

During the installing of packages if yum runs out of free disk space,
some post install scripts could fail (like e.g. when the kernel
package generates initramfs), but yum would still exit with a status
0.  This is bad, especially for the kernel package, because it makes
it unable to boot.  Because the yum module is usually used for
automation, which means the users cannot read every message yum
prints, it's better that the yum module fails if it detects that
there is no free space on the disk.

Signed-off-by: Adam Miller <admiller@redhat.com>

* Revert "fix licensing and attribution in yumdnf module_util"

This reverts commit 59e11de5a2a6efa17ac3f0076bb162348c02e1bd.

* move fetch_rpm_from_url out of yumdnf module_util

Signed-off-by: Adam Miller <admiller@redhat.com>

* fix the move of fetch_rpm_from_url

Signed-off-by: Adam Miller <admiller@redhat.com>
2018-08-17 11:15:11 -04:00
..
aws Implement signed_request for sigV4 requests (#42758) 2018-08-03 08:31:10 +10:00
common make lockfile destination settable and update doc (#42795) 2018-08-08 06:52:11 -07:00
compat Adds the ipaddress compat library backport from Python 3.x (#42265) 2018-07-17 11:37:23 -07:00
facts fix alt linux detection for new versions (#43723) 2018-08-10 15:16:33 -04:00
k8s Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
net_tools to resolve 43705 (#44078) 2018-08-16 08:11:30 +00:00
network Fixes ios_l2_interface and ios_vlan not working on certain interface types issue (#43819) 2018-08-14 11:35:09 +05:30
parsing Improve convert_bool error message 2018-02-12 13:05:38 -05:00
powershell PrivilegeUtil: use native methods to get pointer offset (#43461) 2018-07-30 18:33:49 -04:00
remote_management Connection and MAC pool module for Cisco UCS (#31151) 2017-12-14 19:38:35 +01:00
six Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
storage New module for managing EMC VNX Block storage (#42945) 2018-08-09 10:38:26 -07:00
__init__.py Enhance empty __init__ code-smell to check module_utils (#33438) 2017-11-30 15:47:38 -08:00
_text.py Fix for to_text and to_bytes error handlers 2017-07-24 09:19:04 -07:00
acme.py New acme_account_facts module. (#44301) 2018-08-17 15:32:09 +02:00
ansible_release.py [AWS] Add Ansible Version to botocore user agent string (#39993) 2018-05-17 11:41:14 -04:00
ansible_tower.py Tower modules: move HAS_TOWER_CLI check in module_utils and minor improvements (#39809) 2018-08-02 11:17:39 -04:00
api.py Remove comments about import order 2017-08-07 19:46:06 -07:00
azure_rm_common.py Azure RM Common - use built in module logging (#43820) 2018-08-17 10:40:25 +08:00
azure_rm_common_rest.py introducing azure_rm_resource (#39274) 2018-05-23 16:55:57 -07:00
basic.py Remove use of simplejson throughout code base (#43548) 2018-08-10 11:13:29 -05:00
cloud.py AWSRetry: allow retrying on additional ClientError exceptions (#28483) 2017-08-22 15:31:20 -04:00
cloudscale.py cloudscale_floating_ip module (#33181) 2017-12-11 14:48:35 +00:00
cloudstack.py cloudstack: fix query tags by resourceid (#40482) 2018-05-21 17:16:44 +02:00
connection.py Prevent data being truncated over persistent connection socket (#43885) 2018-08-10 09:26:58 -04:00
crypto.py Allow multiple values per key in name fields in openssl_certificate/csr (#30338) 2017-12-12 12:35:22 +00:00
database.py Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
digital_ocean.py Include Digital Ocean Token Alias (#36810) 2018-03-01 09:56:53 +05:30
dimensiondata.py dimensiondata: fix broken import (#35634) 2018-02-07 00:44:42 +01:00
docker_common.py Fix ssl_version default value. (#42955) 2018-07-20 11:32:04 -04:00
ec2.py [AWS] Add Ansible Version to botocore user agent string (#39993) 2018-05-17 11:41:14 -04:00
exoscale.py exo_dns_record: remove limitation for multiple records only for A type (#35173) 2018-02-05 22:40:02 +01:00
f5_utils.py Refactor common network shared and platform utils code into package (#33452) 2017-12-03 21:42:30 +05:30
firewalld.py refactor firewalld module, add firewalld module_util (#37603) 2018-04-30 15:33:28 -05:00
gcdns.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
gce.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
gcp.py Fix dangerous default args. (#29839) 2017-09-12 00:11:13 -07:00
gcp_utils.py Bug fixes for gcp_compute_address (#42704) 2018-08-13 10:50:04 -04:00
gitlab.py Fix shebangs and file modes and update tests. (#40563) 2018-05-22 14:25:36 -07:00
heroku.py New module: heroku_collaborator (#39001) 2018-05-22 11:50:53 +02:00
ibm_sa_utils.py Add ibm storage module to ansible (#39960) 2018-08-15 08:38:11 +02:00
infinibox.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
influxdb.py influxdb: Add condition for retries argument (#38441) 2018-04-15 22:05:51 -04:00
ipa.py Remove use of simplejson throughout code base (#43548) 2018-08-10 11:13:29 -05:00
ismount.py fix typo 2016-02-08 19:10:04 +01:00
json_utils.py Remove use of simplejson throughout code base (#43548) 2018-08-10 11:13:29 -05:00
keycloak.py New module: keycloak_clienttemplate (#33419) 2018-01-31 13:12:53 +00:00
known_hosts.py Fix invalid string escape sequences. 2017-11-21 10:03:34 -08:00
ldap.py LDAP: Refactor and add ldap_passwd module (#33040) 2018-04-27 15:54:05 +05:30
lxd.py Remove use of simplejson throughout code base (#43548) 2018-08-10 11:13:29 -05:00
manageiq.py Fix shebangs and file modes and update tests. (#40563) 2018-05-22 14:25:36 -07:00
memset.py New Memset module to request DNS reloads (#40390) 2018-05-25 00:30:25 +02:00
mysql.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
netapp.py Adding Common files for NetApp ElementSW release (#43727) 2018-08-10 09:33:08 -07:00
netapp_elementsw_module.py Adding Common files for NetApp ElementSW release (#43727) 2018-08-10 09:33:08 -07:00
netapp_module.py Adding Common files for NetApp ElementSW release (#43727) 2018-08-10 09:33:08 -07:00
oneandone.py New module: manage 1&1 public ip (cloud/oneandone/oneandone_public_ip) (#35079) 2018-02-07 12:15:27 -06:00
oneview.py DatacenterFactsModule for HPE OneView (#32701) 2017-11-28 13:49:51 +00:00
opennebula.py Fix opennebula test stub (#40436) 2018-05-25 07:42:14 +02:00
openstack.py openstack: Correct fail_json call in module_utils (#41064) 2018-06-04 10:18:15 +02:00
ovirt.py add custom_compatibility_version (#40813) 2018-08-15 08:56:18 -04:00
postgres.py Remove wildcard imports and get_exception calls 2017-08-12 00:48:53 -07:00
pure.py Initial commit for Pure Storage FlashBlade module (#32467) 2018-02-22 15:33:48 -05:00
pycompat24.py Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
rax.py Fix invalid string escape sequences. 2017-11-21 10:03:34 -08:00
redfish_utils.py Add new module for Redfish APIs (#41656) 2018-07-27 12:21:25 -04:00
redhat.py Miscellaneous pylint fixes. 2017-09-13 01:53:08 -07:00
scaleway.py Add a User-Agent string to the API request (#38587) 2018-05-14 09:55:47 -05:00
service.py Fix typo of stderr 2018-07-31 13:23:05 -04:00
splitter.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00
univention_umc.py Python 2.6 str.format() compatibility fixes. 2018-01-10 14:08:11 -08:00
urls.py Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
vca.py Use response.content instead of response object (#25772) 2017-08-14 12:40:06 -04:00
vmware.py VMware: handle special characters in datacenter name (#42922) 2018-07-27 12:17:10 +05:30
vmware_rest_client.py VMware: New module: vmware_tag (#37261) 2018-05-07 16:30:16 +05:30
vultr.py Vultr: Introducing vultrr_block_storage module (#43202) 2018-08-17 10:30:57 +02:00
yumdnf.py Refactor yum and dnf, add feature parity (#43621) 2018-08-17 11:15:11 -04:00