-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
Fix Red Hat facts on version 4.2 #257
Conversation
@anders-larsson thanks for the PR. We've some redhat facts for othe facter versions as well. can you take a look at those as well? |
eb69eb7
to
b98f5d5
Compare
Hello, I'll have a look. Thanks. |
How strict should it be? File https://github.com/voxpupuli/facterdb/blob/master/facts/4.2/redhat-7-x86_64.facts seems to have been generated using CentOS Stream since release is set to 7.8.2003 which is only used for by CentOS (Stream). However it contains everything that is required for it to work on Red Hat systems. Maybe worth updating since os.release.full/os.distro.release.full is set to 7.8.2003 which might be used in spec tests though? |
Ideally speaking it really is the output of |
b98f5d5
to
97b505f
Compare
Took a little bit of time due to local environment setup. Included fact file is for a completely vanilla (minimal) redhat-9 system. Only puppet-agent installed. Changed hostname, fqdn, domain and a few other values (for privacy) using the same values as was previously used. Is this the information we want? I'm not sure why the sorting of values is different now (os is one) now compared to previous file. Used the command mentioned by ekohl. If this is the information we want I'll try to fix it for redhat-7 and redhat-8 from facter 4.2. |
97b505f
to
d4459bf
Compare
d4459bf
to
62dd0f7
Compare
I've updated all Red Hat related files for 4.2. I hope this is suitable for your needs. Please tell me if any changes are required. All is default installations for RHEL. |
51500ee
to
ca1fc10
Compare
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.
Thanks for sorting. The diff is now much easier to consume.
facts/4.2/redhat-8-x86_64.facts
Outdated
"interfaces": "eth0,lo", | ||
"ipaddress": "10.0.2.15", | ||
"ipaddress_eth0": "10.0.2.15", | ||
"interfaces": "enp1s0,lo,virbr0", |
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.
It'd be slightly easier if there wasn't a virbr0, but it doesn't really matter that much.
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.
Not sure why it was created. I should be able to filter it out.
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.
Should be fixed in most recent commit.
ca1fc10
to
a4ec161
Compare
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.
Thanks!
Current fact file for redhat-9 seems to have been made using a CentOS system as template. However this does not properly reflect a Red Hat 9 system. Most important change in this is adding os.distro.release.minor and os.release.minor and updating operatingsystemrelease, os.distro.release.full, and os.release.full to match the values for a Red Hat 9 system.
Took the opportunity to update codename, description and id to match Red Hat too.
Found this issue when adding support for EL9 in a class where it worked for previous versions of EL.