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.
ansible/test
Johanan Liebermann fbd828673d
Fix distro fact handling for Flatcar (#77635)
* Fix distro fact handling for Flatcar

The existence of the file /etc/flatcar/update.conf depends on
bootstrap configuration typically provided by the user. For that
reason this file is unsuitable for determining distro facts for
Flatcar Container Linux.

The distribution_release fact is meaningless in the case of Flatcar
since Flatcar doesn't have named releases. The distribution_version
fact, however, IS meaningful and should contain a number such as
"3139.2.0".

- Use /etc/os-release instead of /etc/flatcar/update.conf.
- Drop the distribution_release fact.
- Set the distribution_version fact.
- Update distro test fixture for Flatcar
- Generate the fixture using gen_distribution_version_testcase.py.
- Override result.distribution and result.os_family manually as the
  generator script gives wrong values.
- Use a recent Flatcar version.

Signed-off-by: Johanan Liebermann <jliebermann@microsoft.com>
2 years ago
..
ansible_test ansible-test - Move code from _data to _util. (#75495) 3 years ago
integration Limit Galaxy API calls during ansible-galaxy dependency resolution (#77468) 2 years ago
lib/ansible_test ansible-test - Remove Fedora 35 support. (#78720) 2 years ago
sanity ansible-test - Update sanity test requirements. (#78528) 2 years ago
support Remove incidental_inventory_foreman test. 2 years ago
units Fix distro fact handling for Flatcar (#77635) 2 years ago
utils/shippable Remove incidental_inventory_foreman test. 2 years ago