Improve CoreOS distribution parsing#53563
Conversation
- use /etc/lsb-release for CoreOS since it contains all the information we need and /etc/coreos/update.conf didn't have much at all - add explicit check to ensure the system is CoreOS - create fixtures of distribution data for easy reuse during tests - update ClearLinux tests to use these fixtures - add tests for CoreOS distribution parsing
|
The test |
|
The test |
|
After discussing with the CoreOS folks a bit, I need to do some more work to get this correct. Notes from my discussion with them:
This means we will have to parse multiple files and pass that in to |
|
@samdoran looks right to me. Please note that, at least on RHCOS, the update.conf file referenced above does not exist. |
|
@ashcrow Thank you for the information. Is there something appropriate from On other platforms, this seems to be the value in parenthesis from That would be |
|
The best I can come up with would be to re-use the |
|
/cc @bgilbert |
|
/cc @dustymabe |
|
For Fedora CoreOS here is where we decided what would go in It almost looks like rather than parsing |
|
@dustymabe Thank you very much. This is very helpful. |
|
@samdoran |
SUMMARY
/etc/lsb-releasefor CoreOS since it contains all the information we need and/etc/coreos/update.confdidn't have much at allISSUE TYPE
COMPONENT NAME
lib/ansible/module_utils/facts/system/distribution.py