From 8e514993f5fbe14050e702b2bf7494466cdafcf9 Mon Sep 17 00:00:00 2001 From: Luke Meyer Date: Tue, 5 Sep 2017 15:57:46 -0400 Subject: openshift_checks aos_version: also check installed under yum Tweaks to the logic around using yum vs dnf; now uses ansible_pkg_mgr to determine which is in effect for a host. Also, extended the yum logic to check installed packages in addition to available packages in the aos_version module so that disconnected installs and others with weird repo configs need not disable the package_version check. --- roles/openshift_health_checker/openshift_checks/package_version.py | 1 + 1 file changed, 1 insertion(+) (limited to 'roles/openshift_health_checker/openshift_checks') diff --git a/roles/openshift_health_checker/openshift_checks/package_version.py b/roles/openshift_health_checker/openshift_checks/package_version.py index 8b780114f..0b795b6c4 100644 --- a/roles/openshift_health_checker/openshift_checks/package_version.py +++ b/roles/openshift_health_checker/openshift_checks/package_version.py @@ -46,6 +46,7 @@ class PackageVersion(NotContainerizedMixin, OpenShiftCheck): check_multi_minor_release = deployment_type in ['openshift-enterprise'] args = { + "package_mgr": self.get_var("ansible_pkg_mgr"), "package_list": [ { "name": "openvswitch", -- cgit v1.2.1