Skip to content

Commit

Permalink
Add some CentOS 9 legacy facts
Browse files Browse the repository at this point in the history
This is only manual addition of

```
facter --version 4.2.5
facter operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily hardwaremodel architecture
```

It's certainly enough for rspec-puppet-facts to consider this a valid
fact set.

In addition it also allows the `redhat` provider for `service` to
operate correctly.
  • Loading branch information
traylenator committed Dec 14, 2021
1 parent 1f95f77 commit 4fa2d6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions facts/4.2/centos-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": "CentOS",
"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
1 change: 0 additions & 1 deletion spec/facts_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +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/centos-9-x86_64.facts' => 'no legacy facts',
'facts/4.2/oraclelinux-9-x86_64.facts' => 'no legacy facts',
'facts/4.2/redhat-9-x86_64.facts' => 'no legacy facts',
}
Expand Down

0 comments on commit 4fa2d6e

Please sign in to comment.