Skip to content

Add FreeBSD memory facts#2020

Merged
oanatmaria merged 4 commits intopuppetlabs:4.xfrom
smortex:add-freebsd-memory-facts
Aug 11, 2020
Merged

Add FreeBSD memory facts#2020
oanatmaria merged 4 commits intopuppetlabs:4.xfrom
smortex:add-freebsd-memory-facts

Conversation

@smortex
Copy link
Copy Markdown
Contributor

@smortex smortex commented Aug 10, 2020

Collect system and swap memory information on FreeBSD

🎁 @igalic

The memory facts where not provided by Facter 4. With this PR, Facter returns the same facts as Facter 3 does.

@smortex smortex requested review from a team August 10, 2020 23:00
@puppetlabs-jenkins
Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@smortex smortex force-pushed the add-freebsd-memory-facts branch from dded107 to 23b2c8e Compare August 10, 2020 23:10
@smortex smortex force-pushed the add-freebsd-memory-facts branch from 23b2c8e to 733e5ca Compare August 10, 2020 23:14
@smortex smortex changed the title (maint) Add FreeBSD memory facts Add FreeBSD memory facts Aug 11, 2020
@oanatmaria oanatmaria added the enhancement New feature or enhancement label Aug 11, 2020
Copy link
Copy Markdown

@igalic igalic left a comment

Choose a reason for hiding this comment

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

🙋🏻‍♀️

Comment thread lib/facter/resolvers/freebsd/system_memory_resolver.rb Outdated
Comment thread lib/facter/resolvers/freebsd/system_memory_resolver.rb Outdated
Comment thread spec/facter/facts/freebsd/memory/swap/capacity_spec.rb Outdated
Comment thread .rubocop_todo.yml Outdated
@puppetcla
Copy link
Copy Markdown

CLA signed by all contributors.

Comment thread spec/facter/facts/freebsd/memory/swap/used_bytes_spec.rb
Comment thread spec/facter/facts/freebsd/memory/system/capacity_spec.rb
Comment thread spec/facter/facts/freebsd/memory/system/used_bytes_spec.rb
@smortex
Copy link
Copy Markdown
Contributor Author

smortex commented Aug 11, 2020

@IrimieBogdan I added a commit that fix the issues you listed, thank you for catching them, I mostly copied the Solaris facts which mix old and new style specs. Should these be updated too (I mean in this PR, or do we keep the focus on FreeBSD memory facts here)?

@smortex smortex requested a review from BogdanIrimie August 11, 2020 18:26
@igalic
Copy link
Copy Markdown

igalic commented Aug 11, 2020

let's clean up solaris tests in a next round

Comment thread lib/facter/resolvers/freebsd/swap_memory_resolver.rb Outdated
@smortex smortex force-pushed the add-freebsd-memory-facts branch from eef6301 to 40e14ab Compare August 11, 2020 18:43
@oanatmaria oanatmaria merged commit e6cf859 into puppetlabs:4.x Aug 11, 2020
@smortex smortex deleted the add-freebsd-memory-facts branch August 11, 2020 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants