mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
499ddeadd5
* Fix pkg_mgr_name fact finding for Fedora (#40922) * Properly handle default package manager vs apt For distros where apt might be installed but is not the default package manager for the distro, properly identify the default distro package manager during fact finding and re-use fact finding from DistributionFactCollector and instead of reimplementing small portions of it in PkgMgrFactCollector Add unit test to always check the apt + Fedora combination to test the new code. Fixes #34014 Signed-off-by: Adam Miller <admiller@redhat.com> * remove q debugging output I accidentally left behind Signed-off-by: Adam Miller <admiller@redhat.com> * add os_family to the conditional so we're only hitting that code path when needed Signed-off-by: Adam Miller <admiller@redhat.com> * setup for a _check* pattern for general os_family group pkg_mgr checking Signed-off-by: Adam Miller <admiller@redhat.com> * use Mock.patch decorator for os.path.exists in TestPkgMgrFactsAptFedora Signed-off-by: Adam Miller <admiller@redhat.com> * fix fedora version dnf fact, default pkg_mgr detection per distro family (#43261) * fix fedora version dnf fact, default pkg_mgr detection per distro family * loop over possible dnf/yum paths in case there are multiple canonical sources later in life Signed-off-by: Adam Miller <admiller@redhat.com> * pkg_mgr: fixed apt_rpm detection (#43769) Instead of checking the distribution name (which apparently is tricky to find out) check if /usr/bin/apt-get is managed by RPM. Fixes #43539 * Ensure that apt is always chosen on debian/ubuntu One can install alternate packages managers on debuntu machines. However, doing so doesn't mean you want to suddenly start using them. Add in a check similar to the fedora yum/dnf check that sets apt as the pkg_mgr if the ansible_os_family is Debian. |
6 years ago | |
---|---|---|
.. | ||
fixtures | 8 years ago | |
hardware | 7 years ago | |
network | 8 years ago | |
other | 8 years ago | |
system | 8 years ago | |
__init__.py | 8 years ago | |
base.py | 8 years ago | |
test_ansible_collector.py | 6 years ago | |
test_collector.py | 7 years ago | |
test_collectors.py | 6 years ago | |
test_facts.py | 7 years ago | |
test_timeout.py | 8 years ago | |
test_utils.py | 8 years ago |