1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/modules
patchback[bot] d9c12d1d53
Support older version of psutil (RHEL7 and RHEL6) (#2808) (#3188)
* Support older version of psutil (RHEL7 and RHEL6)

The psutil python module is a true mess, they changed the API twice. The function arguments, as well as the objects that are returned.
The documentation does not make it clear which version supports what so the safest implementation is this waterfall approach.

A better approach would be to inspect the returned information, rather than trust a version, but that would not be any more efficient.
In the end it is better to have something that at least works out-of-the-box on all platforms than something that requires custom updates to system packages before it works as expected. Especially for something as basic as `pids`.

* A little bit more concise

* Apply suggestions from code review

* Add changelog fragment.

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit b5d6457611)

Co-authored-by: Dag Wieers <dag@wieers.com>
2021-08-10 08:08:46 +02:00
..
cloud [stable-2] added supports_check_mode=True to info/facts modules (#3095) 2021-07-28 07:42:07 +02:00
clustering 1085 updating the hcl whitelist to include all supported options (#2495) (#2527) 2021-05-17 08:09:17 +02:00
database influxdb_user: Fix bug introduced by PR 2499 (#2614) (#2639) 2021-05-27 08:23:11 +02:00
files [PR #3074/2831bc45 backport][stable-2] ini_file: fix empty-value vs. no-value inconsistency (#3181) 2021-08-09 16:31:24 +02:00
identity fix sudorule_add_allow_command_group (#2821) (#2832) 2021-06-17 19:42:57 +02:00
monitoring spectrum_model_attrs: Initial commit (#1802) (#2229) 2021-04-12 20:54:00 +00:00
net_tools [stable-2] added supports_check_mode=True to info/facts modules (#3095) 2021-07-28 07:42:07 +02:00
notification grove: message -> message_content (#1929) (#1936) 2021-02-27 23:11:44 +01:00
packaging openbsd_pkg: Fix regexp matching crash (#3161) (#3185) 2021-08-09 23:02:49 +02:00
remote_management [stable-2] added supports_check_mode=True to info/facts modules (#3095) 2021-07-28 07:42:07 +02:00
source_control fixed RETURN doc (#3120) (#3122) 2021-07-31 09:38:26 +02:00
storage [stable-2] added supports_check_mode=True to info/facts modules (#3095) 2021-07-28 07:42:07 +02:00
system Support older version of psutil (RHEL7 and RHEL6) (#2808) (#3188) 2021-08-10 08:08:46 +02:00
web_infrastructure deploy_helper - changed in-code condition to required_if (#3104) (#3107) 2021-07-29 08:04:13 +02:00
aerospike_migrations.py
airbrake_deployment.py
aix_devices.py
aix_filesystem.py
aix_inittab.py
aix_lvg.py
aix_lvol.py
ali_instance.py
ali_instance_facts.py
ali_instance_info.py
alternatives.py
apache2_mod_proxy.py make collection usable with current ansible vers (#9) 2020-03-11 14:10:38 +00:00
apache2_module.py
apk.py
apt_repo.py
apt_rpm.py
archive.py
atomic_container.py
atomic_host.py
atomic_image.py
awall.py
beadm.py
bearychat.py
bigpanda.py
bitbucket_access_key.py
bitbucket_pipeline_key_pair.py
bitbucket_pipeline_known_host.py
bitbucket_pipeline_variable.py
bower.py
bundler.py
bzr.py
campfire.py
capabilities.py
catapult.py
circonus_annotation.py
cisco_spark.py
cisco_webex.py
clc_aa_policy.py
clc_alert_policy.py
clc_blueprint_package.py
clc_firewall_policy.py
clc_group.py
clc_loadbalancer.py
clc_modify_server.py
clc_publicip.py
clc_server.py
clc_server_snapshot.py
cloud_init_data_facts.py
cloudflare_dns.py
cobbler_sync.py
cobbler_system.py
composer.py
consul.py
consul_acl.py
consul_kv.py
consul_session.py
copr.py New module: Add copr module (#1592) 2021-01-27 19:30:03 +01:00
cpanm.py
cronvar.py
crypttab.py
datadog_downtime.py Add downtime module (#1437) 2020-12-15 19:50:42 +01:00
datadog_event.py
datadog_monitor.py
dconf.py
deploy_helper.py
dimensiondata_network.py
dimensiondata_vlan.py
django_manage.py
dnsimple.py
dnsmadeeasy.py
dpkg_divert.py
easy_install.py
ejabberd_user.py
elasticsearch_plugin.py
emc_vnx_sg_member.py
etcd3.py
facter.py
filesystem.py
flatpak.py
flatpak_remote.py
flowdock.py
gandi_livedns.py Add gandi_livedns module (#328) (#2070) 2021-03-21 13:22:14 +01:00
gconftool2.py
gem.py
git_config.py
github_deploy_key.py
github_issue.py
github_key.py
github_release.py
github_repo.py Added new module github_repo (#1683) (#1974) 2021-03-06 13:51:43 +01:00
github_webhook.py
github_webhook_info.py make collection usable with current ansible vers (#9) 2020-03-11 14:10:38 +00:00
gitlab_deploy_key.py
gitlab_group.py
gitlab_group_members.py add a custom module for managing group membership in gitlab (#844) 2020-09-16 07:24:37 +02:00
gitlab_group_variable.py Create gitlab_group_variable.py (#786) 2020-09-21 10:15:56 +03:00
gitlab_hook.py
gitlab_project.py
gitlab_project_members.py added gitlab_project_members (#1829) (#1870) 2021-02-21 18:19:10 +01:00
gitlab_project_variable.py
gitlab_runner.py
gitlab_user.py
gluster_heal_info.py
gluster_peer.py
gluster_volume.py
grove.py
gunicorn.py
haproxy.py
helm.py
heroku_collaborator.py
hg.py
hipchat.py
homebrew.py
homebrew_cask.py
homebrew_tap.py
honeybadger_deployment.py
hpilo_boot.py
hpilo_facts.py
hpilo_info.py
hponcfg.py
htpasswd.py
hwc_ecs_instance.py
hwc_evs_disk.py
hwc_network_vpc.py
hwc_smn_topic.py
hwc_vpc_eip.py
hwc_vpc_peering_connect.py
hwc_vpc_port.py
hwc_vpc_private_ip.py
hwc_vpc_route.py
hwc_vpc_security_group.py
hwc_vpc_security_group_rule.py
hwc_vpc_subnet.py
ibm_sa_domain.py
ibm_sa_host.py
ibm_sa_host_ports.py
ibm_sa_pool.py
ibm_sa_vol.py
ibm_sa_vol_map.py
icinga2_feature.py
icinga2_host.py
idrac_firmware.py
idrac_redfish_command.py
idrac_redfish_config.py
idrac_redfish_facts.py
idrac_redfish_info.py
idrac_server_config_profile.py
imc_rest.py
imgadm.py
infinity.py
influxdb_database.py
influxdb_query.py
influxdb_retention_policy.py
influxdb_user.py
influxdb_write.py
ini_file.py
installp.py
interfaces_file.py
ip_netns.py
ipa_config.py
ipa_dnsrecord.py
ipa_dnszone.py
ipa_group.py
ipa_hbacrule.py
ipa_host.py
ipa_hostgroup.py
ipa_otpconfig.py Added modules ipa_otpconfig and ipa_otptoken (#2122) (#2219) 2021-04-11 15:53:33 +02:00
ipa_otptoken.py Added modules ipa_otpconfig and ipa_otptoken (#2122) (#2219) 2021-04-11 15:53:33 +02:00
ipa_pwpolicy.py Add ipa_pwpolicy module (#1147) 2021-01-06 19:17:07 +03:00
ipa_role.py
ipa_service.py
ipa_subca.py
ipa_sudocmd.py
ipa_sudocmdgroup.py
ipa_sudorule.py
ipa_user.py
ipa_vault.py
ipify_facts.py
ipinfoio_facts.py
ipmi_boot.py
ipmi_power.py
iptables_state.py New module: iptables_state (#271) 2020-08-15 10:36:07 +02:00
ipwcli_dns.py
irc.py
iso_create.py
iso_extract.py
jabber.py
java_cert.py
java_keystore.py
jboss.py
jenkins_build.py Jenkins build module (#745) (#1957) 2021-03-04 08:27:10 +01:00
jenkins_job.py
jenkins_job_facts.py
jenkins_job_info.py
jenkins_plugin.py
jenkins_script.py
jira.py
kernel_blacklist.py
keycloak_client.py
keycloak_clienttemplate.py
keycloak_group.py
kibana_plugin.py
launchd.py launchd: new module to control services on macOS hosts (#305) 2020-07-22 16:54:58 +03:00
layman.py
lbu.py
ldap_attr.py
ldap_attrs.py
ldap_entry.py
ldap_passwd.py
ldap_search.py
librato_annotation.py
linode.py
linode_v4.py
listen_ports_facts.py
lldp.py
locale_gen.py
logentries.py
logentries_msg.py
logstash_plugin.py
lvg.py
lvol.py
lxc_container.py
lxca_cmms.py
lxca_nodes.py
lxd_container.py
lxd_profile.py
macports.py
mail.py
make.py
manageiq_alert_profiles.py
manageiq_alerts.py
manageiq_group.py
manageiq_policies.py
manageiq_provider.py
manageiq_tags.py
manageiq_tenant.py
manageiq_user.py
mas.py
matrix.py
mattermost.py
maven_artifact.py
memset_dns_reload.py
memset_memstore_facts.py
memset_memstore_info.py
memset_server_facts.py
memset_server_info.py
memset_zone.py
memset_zone_domain.py
memset_zone_record.py
mksysb.py
modprobe.py
monit.py
mqtt.py
mssql_db.py
na_ontap_gather_facts.py
nagios.py
netcup_dns.py
newrelic_deployment.py
nexmo.py
nginx_status_facts.py
nginx_status_info.py
nictagadm.py
nios_a_record.py
nios_aaaa_record.py
nios_cname_record.py
nios_dns_view.py
nios_fixed_address.py
nios_host_record.py
nios_member.py
nios_mx_record.py
nios_naptr_record.py
nios_network.py
nios_network_view.py
nios_nsgroup.py
nios_ptr_record.py
nios_srv_record.py
nios_txt_record.py
nios_zone.py
nmcli.py
nomad_job.py new module nomad_job & nomad_job_info (#867) 2020-10-19 13:40:07 +02:00
nomad_job_info.py new module nomad_job & nomad_job_info (#867) 2020-10-19 13:40:07 +02:00
nosh.py
npm.py
nsupdate.py
oci_vcn.py
odbc.py Adding ODBC module (#606) 2020-07-17 07:39:37 +03:00
office_365_connector_card.py
ohai.py
omapi_host.py
ome_device_info.py
one_host.py
one_image.py
one_image_facts.py
one_image_info.py
one_service.py
one_template.py opennebula: add one_template module (#2046) (#2111) 2021-03-26 07:47:38 +01:00
one_vm.py
oneandone_firewall_policy.py
oneandone_load_balancer.py
oneandone_monitoring_policy.py
oneandone_private_network.py
oneandone_public_ip.py
oneandone_server.py
onepassword_facts.py
onepassword_info.py
oneview_datacenter_facts.py
oneview_datacenter_info.py
oneview_enclosure_facts.py
oneview_enclosure_info.py
oneview_ethernet_network.py
oneview_ethernet_network_facts.py
oneview_ethernet_network_info.py
oneview_fc_network.py
oneview_fc_network_facts.py
oneview_fc_network_info.py
oneview_fcoe_network.py
oneview_fcoe_network_facts.py
oneview_fcoe_network_info.py
oneview_logical_interconnect_group.py
oneview_logical_interconnect_group_facts.py
oneview_logical_interconnect_group_info.py
oneview_network_set.py
oneview_network_set_facts.py
oneview_network_set_info.py
oneview_san_manager.py
oneview_san_manager_facts.py
oneview_san_manager_info.py
online_server_facts.py
online_server_info.py
online_user_facts.py
online_user_info.py
open_iscsi.py
openbsd_pkg.py
opendj_backendprop.py
openwrt_init.py
opkg.py
osx_defaults.py
ovh_ip_failover.py
ovh_ip_loadbalancing_backend.py
ovh_monthly_billing.py
ovirt.py
ovirt_affinity_label_facts.py
ovirt_api_facts.py
ovirt_cluster_facts.py
ovirt_datacenter_facts.py
ovirt_disk_facts.py
ovirt_event_facts.py
ovirt_external_provider_facts.py
ovirt_group_facts.py
ovirt_host_facts.py
ovirt_host_storage_facts.py
ovirt_network_facts.py
ovirt_nic_facts.py
ovirt_permission_facts.py
ovirt_quota_facts.py
ovirt_scheduling_policy_facts.py
ovirt_snapshot_facts.py
ovirt_storage_domain_facts.py
ovirt_storage_template_facts.py
ovirt_storage_vm_facts.py
ovirt_tag_facts.py
ovirt_template_facts.py
ovirt_user_facts.py
ovirt_vm_facts.py
ovirt_vmpool_facts.py
pacemaker_cluster.py
packet_device.py
packet_ip_subnet.py
packet_project.py
packet_sshkey.py
packet_volume.py
packet_volume_attachment.py
pacman.py
pagerduty.py
pagerduty_alert.py
pagerduty_change.py Adds a module for sending PagerDuty change events. (#1269) 2020-11-13 11:44:57 +03:00
pagerduty_user.py a new module pagerduty_user (#1025) 2020-11-26 13:22:35 +01:00
pam_limits.py
pamd.py
parted.py
pear.py
pids.py
pingdom.py
pip_package_info.py
pkg5.py
pkg5_publisher.py
pkgin.py
pkgng.py
pkgutil.py
portage.py
portinstall.py
pritunl_org.py New module: Add Pritunl VPN organization module (net_tools/pritunl/) (#804) (#2212) 2021-04-09 05:35:07 +02:00
pritunl_org_info.py New module: Add Pritunl VPN organization module (net_tools/pritunl/) (#804) (#2212) 2021-04-09 05:35:07 +02:00
pritunl_user.py New module: Add Pritunl VPN user module (net_tools/pritunl/) (#803) (#2071) 2021-03-21 11:46:33 +01:00
pritunl_user_info.py New module: Add Pritunl VPN user module (net_tools/pritunl/) (#803) (#2071) 2021-03-21 11:46:33 +01:00
profitbricks.py
profitbricks_datacenter.py
profitbricks_nic.py
profitbricks_volume.py
profitbricks_volume_attachments.py
proxmox.py
proxmox_domain_info.py proxmox: create a common base (#1331) 2020-11-24 17:30:39 +01:00
proxmox_group_info.py proxmox: create a common base (#1331) 2020-11-24 17:30:39 +01:00
proxmox_kvm.py
proxmox_snap.py New module: proxmox_snap (#1135) 2020-12-21 14:37:30 +01:00
proxmox_storage_info.py New module proxmox_storage_info (#1844) (#1879) 2021-02-22 18:36:23 +01:00
proxmox_template.py
proxmox_user_info.py proxmox: create a common base (#1331) 2020-11-24 17:30:39 +01:00
pubnub_blocks.py
pulp_repo.py
puppet.py
purefa_facts.py
purefb_facts.py
pushbullet.py
pushover.py
python_requirements_facts.py
python_requirements_info.py
rax.py
rax_cbs.py
rax_cbs_attachments.py
rax_cdb.py
rax_cdb_database.py
rax_cdb_user.py
rax_clb.py
rax_clb_nodes.py
rax_clb_ssl.py
rax_dns.py
rax_dns_record.py
rax_facts.py
rax_files.py
rax_files_objects.py
rax_identity.py
rax_keypair.py
rax_meta.py
rax_mon_alarm.py
rax_mon_check.py
rax_mon_entity.py
rax_mon_notification.py
rax_mon_notification_plan.py
rax_network.py
rax_queue.py
rax_scaling_group.py
rax_scaling_policy.py
read_csv.py
redfish_command.py
redfish_config.py
redfish_facts.py
redfish_info.py
redhat_subscription.py
redis.py
redis_info.py
rhevm.py
rhn_channel.py
rhn_register.py
rhsm_release.py
rhsm_repository.py
riak.py
rocketchat.py
rollbar_deployment.py
rpm_ostree_pkg.py rpm_ostree_pkg: new module (#357) 2021-01-11 09:47:22 +03:00
rundeck_acl_policy.py
rundeck_project.py
runit.py
say.py
scaleway_compute.py
scaleway_database_backup.py Scaleway Database Backup : Create new module (#741) 2020-09-03 15:02:30 +03:00
scaleway_image_facts.py
scaleway_image_info.py
scaleway_ip.py
scaleway_ip_facts.py
scaleway_ip_info.py
scaleway_lb.py
scaleway_organization_facts.py
scaleway_organization_info.py
scaleway_security_group.py
scaleway_security_group_facts.py
scaleway_security_group_info.py
scaleway_security_group_rule.py
scaleway_server_facts.py
scaleway_server_info.py
scaleway_snapshot_facts.py
scaleway_snapshot_info.py
scaleway_sshkey.py
scaleway_user_data.py
scaleway_volume.py
scaleway_volume_facts.py
scaleway_volume_info.py
sefcontext.py
selinux_permissive.py
selogin.py
sendgrid.py
sensu_check.py
sensu_client.py
sensu_handler.py
sensu_silence.py
sensu_subscription.py
seport.py
serverless.py
shutdown.py New module: shutdown (#700) 2020-08-11 17:54:41 +02:00
sl_vm.py
slack.py
slackpkg.py
smartos_image_facts.py
smartos_image_info.py
snap.py
snmp_facts.py
solaris_zone.py
sorcery.py
spectrum_device.py
spectrum_model_attrs.py spectrum_model_attrs: Initial commit (#1802) (#2229) 2021-04-12 20:54:00 +00:00
spotinst_aws_elastigroup.py
ss_3par_cpg.py
ssh_config.py ssh_config: new module (#1640) 2021-01-28 07:26:48 +01:00
stackdriver.py
stacki_host.py
statsd.py StatsD Module (#1793) (#1842) 2021-02-16 12:09:58 +01:00
statusio_maintenance.py
supervisorctl.py
svc.py
svr4pkg.py
swdepot.py
swupd.py
syslogger.py
syspatch.py make collection usable with current ansible vers (#9) 2020-03-11 14:10:38 +00:00
sysrc.py New sysrc module for managing rc files on FreeBSD (#1460) 2021-01-16 14:14:23 +01:00
sysupgrade.py sysupgrade: new module (#341) 2020-08-18 09:10:41 +02:00
taiga_issue.py
telegram.py
terraform.py
timezone.py
twilio.py
typetalk.py
udm_dns_record.py
udm_dns_zone.py
udm_group.py
udm_share.py
udm_user.py
ufw.py
uptimerobot.py
urpmi.py
utm_aaa_group.py
utm_aaa_group_info.py
utm_ca_host_key_cert.py
utm_ca_host_key_cert_info.py
utm_dns_host.py
utm_network_interface_address.py
utm_network_interface_address_info.py
utm_proxy_auth_profile.py
utm_proxy_exception.py
utm_proxy_frontend.py
utm_proxy_frontend_info.py
utm_proxy_location.py
utm_proxy_location_info.py
vdo.py
vertica_configuration.py
vertica_facts.py
vertica_info.py
vertica_role.py
vertica_schema.py
vertica_user.py
vexata_eg.py
vexata_volume.py
vmadm.py
wakeonlan.py
webfaction_app.py
webfaction_db.py
webfaction_domain.py
webfaction_mailbox.py
webfaction_site.py
xattr.py
xbps.py
xcc_redfish_command.py add new module xcc_redfish_command to manage Lenovo servers using Redfish APIs (#2007) (#2095) 2021-03-24 16:43:11 +01:00
xenserver_facts.py
xenserver_guest.py
xenserver_guest_facts.py
xenserver_guest_info.py
xenserver_guest_powerstate.py
xfconf.py
xfs_quota.py
xml.py
yarn.py
yum_versionlock.py yum_versionlock: new module (#1405) 2020-12-03 20:00:49 +01:00
zfs.py
zfs_delegate_admin.py
zfs_facts.py
znode.py
zpool_facts.py
zypper.py
zypper_repository.py