-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Use structured facts to detect OS version #136
Conversation
Tested at voxpupuli/puppet-letsencrypt#281 |
Codecov Report
@@ Coverage Diff @@
## master #136 +/- ##
==========================================
- Coverage 96.20% 95.62% -0.58%
==========================================
Files 2 2
Lines 158 160 +2
==========================================
+ Hits 152 153 +1
- Misses 6 7 +1
Continue to review full report at Codecov.
|
This is at least required for Arch Linux on Facter 4. It doesn't have the legacy facts operatingsystemmajrelease / operatingsystemrelease. https://tickets.puppetlabs.com/projects/FACT/issues/FACT-3114
Instead of refactoring the whole block I decided to only inject one block that uses structured facts. I'm not sure if all factsets have them yet so I think this is the safer approach. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should investigate if the workarounds there are really still needed. They may be outdated by now.
Co-authored-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>
restarted voxpupuli/puppet-letsencrypt#281 with your patch |
This is at least required for Arch Linux on Facter 4. It doesn't have
the legacy facts operatingsystemmajrelease / operatingsystemrelease.
https://tickets.puppetlabs.com/projects/FACT/issues/FACT-3114