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

Require FacterDB 2.x #176

Merged
merged 1 commit into from
Jun 9, 2024
Merged

Conversation

bastelfreak
Copy link
Member

No description provided.

@bastelfreak bastelfreak self-assigned this Jun 7, 2024
@bastelfreak bastelfreak marked this pull request as draft June 7, 2024 19:32
@bastelfreak bastelfreak force-pushed the facterdb2 branch 4 times, most recently from be4169e to 09d6472 Compare June 7, 2024 19:50
@bastelfreak bastelfreak marked this pull request as ready for review June 7, 2024 19:50
@@ -428,24 +428,25 @@

it 'returns supported OS' do
expect(subject.keys.sort).to eq [
'openbsd-5.7-amd64',
'openbsd-7.5-amd64',
Copy link
Member Author

Choose a reason for hiding this comment

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

I wasn't 100% sure what's correct here. this passes now, but the filename is openbsd-7-x86_64.facts.

],
},
{
"operatingsystem" => "Archlinux",
"operatingsystem" => "Gentoo",
Copy link
Member Author

Choose a reason for hiding this comment

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

I switched to Gentoo here because facter 4 dropped Archlinux support 😢

end
end

context 'With a custom facterversion (3.3.2) in the options hash' do
Copy link
Member Author

Choose a reason for hiding this comment

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

this was a bit redundant so I dropped the tests

{ 'operatingsystem' => 'CentOS', 'operatingsystemrelease' => %w[7] },
{ 'operatingsystem' => 'OpenSuSE', 'operatingsystemrelease' => %w[42] },
{ 'operatingsystem' => 'CentOS', 'operatingsystemrelease' => %w[9] },
{ 'operatingsystem' => 'Debian', 'operatingsystemrelease' => %w[12] },
Copy link
Member Author

Choose a reason for hiding this comment

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

getting this to pass with opensuse was ugly because sometimes it's OpenSuSE vs OpenSUSE and we don't have that many factsets, so I switched to Debian.

@bastelfreak
Copy link
Member Author

Marking this as backwards-incompatible. The new facterdb version dropped support for a huge number of legacy facter versions. Those were only used for Puppet 6 and older (which is EOL).

@bastelfreak
Copy link
Member Author

I would like to merge and release voxpupuli/facterdb#364 first, so we can depend on that release here (2.1.0) instead of 2.0.1.

@bastelfreak bastelfreak force-pushed the facterdb2 branch 3 times, most recently from d71538b to d75e427 Compare June 9, 2024 13:06
@bastelfreak bastelfreak merged commit 3803db4 into voxpupuli:master Jun 9, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant