Skip to content
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

"operatingsystem" fact has been removed, causing this module to fail on all Macs #179

Open
zbentley opened this issue Dec 8, 2024 · 1 comment

Comments

@zbentley
Copy link

zbentley commented Dec 8, 2024

Puppet recently removed the operatingsystem fact. This causes this module to fail thus on all Macs:

This Module works on Mac OSX only!.

The code in init.pp should be updated to check $facts['os']['family'] == 'Darwin' instead.

@zbentley
Copy link
Author

zbentley commented Dec 8, 2024

Affected folks can temporarily work around this issue by creating a back-compat operatingsystem fact (in any module: lib/facter/operatingsystem.rb) like this one:

Facter.add('operatingsystem') do
  setcode do
    Facter.value('os').fetch('family')
  end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant