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

Oraclelinux/RHEL 9: Add legacy facts #220

Merged
merged 1 commit into from
Dec 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions facts/4.2/oraclelinux-9-x86_64.facts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"architecture": "x86_64",
"augeas": {
"version": "1.12.0"
},
Expand Down Expand Up @@ -41,13 +42,16 @@
"filesystems": "iso9660,xfs",
"fips_enabled": false,
"gem_version": "~> 4.2.0",
"hardwaremodel": "x86_64",
"hostname": "multi-1",
Copy link
Member

Choose a reason for hiding this comment

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

Where did this come from? For whatever historical reason, I thought the hostname is normally set to foo (and the domain to example.com). https://github.com/voxpupuli/facterdb/search?q=foo

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

"identity": {
"gid": 1000,
"group": "stack",
"privileged": false,
"uid": 1000,
"user": "stack"
},
"ipaddress": "10.109.1.2",
"is_virtual": false,
"kernel": "Linux",
"kernelmajversion": "5.13",
Expand Down Expand Up @@ -181,6 +185,9 @@
"primary": "ens3",
"scope6": "link"
},
"operatingsystem": "OracleLinux",
"operatingsystemmajrelease": "9",
"operatingsystemrelease": "9",
"os": {
"architecture": "x86_64",
"distro": {
Expand All @@ -207,6 +214,7 @@
"policy_version": "33"
}
},
"osfamily": "RedHat",
"partitions": {
"/dev/vda1": {
"size": "1.00 MiB",
Expand Down
8 changes: 8 additions & 0 deletions facts/4.2/redhat-9-x86_64.facts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"architecture": "x86_64",
"augeas": {
"version": "1.12.0"
},
Expand Down Expand Up @@ -41,13 +42,16 @@
"filesystems": "iso9660,xfs",
"fips_enabled": false,
"gem_version": "~> 4.2.0",
"hardwaremodel": "x86_64",
"hostname": "multi-1",
"identity": {
"gid": 1000,
"group": "stack",
"privileged": false,
"uid": 1000,
"user": "stack"
},
"ipaddress": "10.109.1.2",
"is_virtual": false,
"kernel": "Linux",
"kernelmajversion": "5.13",
Expand Down Expand Up @@ -181,6 +185,9 @@
"primary": "ens3",
"scope6": "link"
},
"operatingsystem": "RedHat",
"operatingsystemmajrelease": "9",
"operatingsystemrelease": "9",
"os": {
"architecture": "x86_64",
"distro": {
Expand All @@ -207,6 +214,7 @@
"policy_version": "33"
}
},
"osfamily": "RedHat",
"partitions": {
"/dev/vda1": {
"size": "1.00 MiB",
Expand Down
2 changes: 0 additions & 2 deletions spec/facts_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@
'facts/3.6/pcs-6-x86_64.facts' => 'unable to regenerate facts',
'facts/3.0/ubuntu-15.10-x86_64.facts' => 'no puppet-agent package',
'facts/3.0/ubuntu-15.10-i386.facts' => 'no puppet-agent package',
'facts/4.2/oraclelinux-9-x86_64.facts' => 'no legacy facts',
'facts/4.2/redhat-9-x86_64.facts' => 'no legacy facts',
}

project_dir = Pathname.new(__dir__).parent
Expand Down