Skip to content

Add support for ZFS facts on GNU/Linux #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2025
Merged

Add support for ZFS facts on GNU/Linux #13

merged 1 commit into from
Jun 26, 2025

Conversation

smortex
Copy link
Member

@smortex smortex commented Jun 16, 2025

OpenZFS can be installed on Linux nodes, and is packaged in some Linux distros such as Debian, so it makes sense to make these facts available when the system has support for ZFS.

This patch was created by copying the FreeBSD code and adjusting the namespaces, and tested successfully on a Debian 12 node.

Originally submitted as:
puppetlabs/facter#2782

@smortex
Copy link
Member Author

smortex commented Jun 16, 2025

This is arguably not ideal, and maybe the current ZFS-related code should better be removed from this core component, and provided with a puppet module (e.g. the puppetlabs-zfs_core). That would a be backward-incompatible change though, and maybe not the way we want to go.

I am opening this for discussion, but am very interested in the feature in the control repos I manage 😉

Relates to voxpupuli/language-steering#13

OpenZFS can be installed on Linux nodes, and is packaged in some Linux
distros such as Debian, so it makes sense to make these facts available
when the system has support for ZFS.
@smortex smortex added the enhancement New feature or request 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.

This will be great to have and seems reasonable to include in openfact, it could potentially be split out in the future if it turns out to be a problem.

@smortex smortex merged commit 0143782 into main Jun 26, 2025
16 checks passed
@smortex smortex deleted the zfs branch June 26, 2025 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants