-
-
Notifications
You must be signed in to change notification settings - Fork 497
Add FreeBSD support #567
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
Add FreeBSD support #567
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,6 +33,19 @@ def with_openbsd_facts | |
| end | ||
| end | ||
|
|
||
| def with_freebsd_facts | ||
| # operatingsystemmajrelease is too broad | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we mock stuff here that is totally different in the real world, depending on the freebsd trouble? does it bring us into trouble?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not quite sure I follow?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are the facts we simulate here used? If so, we should probably simulate them correctly, for all supported freebsd versions (or rely on rspec-puppet-facts)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ps - reformatted this one. I think they are (like the other OSes in this file) valid, but not the only possible value. |
||
| # operatingsystemrelease may contain X.X-current | ||
| # or other prefixes | ||
| let :facts do | ||
| super().merge( | ||
| kernelversion: '12', | ||
| osfamily: 'FreeBSD', | ||
| staging_http_get: '' | ||
| ) | ||
| end | ||
| end | ||
|
|
||
| def with_redhat_facts | ||
| let :facts do | ||
| super().merge(operatingsystemmajrelease: '7', | ||
|
|
||
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.
freebsd isnt rolling release (well, kind of), so we shul list the versions we support. same for openbsd
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.
Yeah, I wasn't sure which versions this would work with, and was mostly relying on examples from other modules. Because of the ports system, my guess is that the range of present and future supported versions might be pretty broad, though I don't know how far back we'd want to support.
I do use FreeBSD and OpenBSD (FBSD since the 4.x days), but not with Puppet, so I didn't really know what values are reasonable here. Suggestions or PR to my PR are welcome 😉