Skip to content

Conversation

smortex
Copy link
Member

@smortex smortex commented Jun 16, 2025

Facts and providers are sometimes tied to a specific platform (e.g. Linux, FreeBSD, etc). When it is the case, they are placed in a directory named after this platform.

Some files are incorrectly stored in the base directory making it less obvious that they are platform-specific.

Originally submitted as:
puppetlabs/facter#2743

smortex added 3 commits June 16, 2025 07:56
Move all files that defines Facter::Resolvers::Linux::* into the
lib/facter/resolvers/linux directory.  Also only load them on Linux
systems as they are Linux-specific.
All other filesystems resolvers are named "filesystems" (plural), so
match the same name because all these resolvers have the same purpose.
FreeBSD has containers (jails) but already handled through the 'virutal'
resolver, so for now we just consider Linux being able to handle
containers as the code aleady depend on Linux-specific resolvers.
@smortex smortex added the backwards-incompatible This change will lead to a major version bump for the next release label Jun 26, 2025
Copy link
Contributor

@jessereynolds jessereynolds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to get this consistent

@jessereynolds jessereynolds merged commit 5041704 into main Jun 26, 2025
16 checks passed
@jessereynolds jessereynolds deleted the cleanup branch June 26, 2025 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backwards-incompatible This change will lead to a major version bump for the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants