https://github.com/chef/ohai
Ohai profiles your system and emits JSON
https://github.com/chef/ohai
Keywords
chef configuration configuration-management discovery hacktoberfest ohai ruby
Keywords from Contributors
deployment cfgmgt activerecord mvc activejob crash-reporting rubygems rack rspec rubocop
Last synced: about 6 hours ago
JSON representation
Repository metadata
Ohai profiles your system and emits JSON
- Host: GitHub
- URL: https://github.com/chef/ohai
- Owner: chef
- License: apache-2.0
- Created: 2009-01-15T20:50:43.000Z (about 17 years ago)
- Default Branch: main
- Last Pushed: 2026-02-24T21:59:32.000Z (6 days ago)
- Last Synced: 2026-02-27T09:58:18.606Z (4 days ago)
- Topics: chef, configuration, configuration-management, discovery, hacktoberfest, ohai, ruby
- Language: Ruby
- Homepage: https://docs.chef.io/ohai.html
- Size: 8.67 MB
- Stars: 687
- Watchers: 78
- Forks: 448
- Open Issues: 73
- Releases: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Notice: NOTICE
README.md
ohai
Umbrella Project: Chef Infra
Project State: Active
Issues Response SLA: 10 business days
Pull Request Response SLA: 10 business days
Description
Ohai detects data about your operating system. It can be used standalone, but its primary purpose is to provide node data to Chef.
Ohai will print out a JSON data blob for all the known data about your system. When used with Chef, that data is reported back via node attributes.
Chef distributes ohai as a RubyGem. This README is for developers who want to modify the Ohai source code. For users who want to write plugins for Ohai, see the docs:
- General documentation: https://docs.chef.io/ohai/
- Writing Ohai Plugins documentation: https://docs.chef.io/ohai_custom/
Development Environment
Ohai's development dependencies should be installed with bundler. Just run bundle install in the root of the repo.
Spec Testing
We use RSpec for unit/spec tests. To run the full suite, run:
bundle exec rake spec
You can run individual test files by running the rspec executable:
bundle exec rspec spec/unit/FILE.rb
Style
We use Cookstyle, as a code linter, to enforce style guidelines. To run:
bundle exec rake style
You can run and automatically correct the issues:
bundle exec rake style:auto_correct
Rake Tasks
Ohai has some Rake tasks for doing various things.
bundle exec rake -T
rake build # Build ohai-$VERSION.gem into the pkg directory
rake clean # Remove any temporary products
rake clobber # Remove any generated files
rake install # Build and install ohai-$VERSION.gem into system gems
rake install:local # Build and install ohai-$VERSION.gem into system gems without network access
rake release[remote] # Create tag $VERSION and build and push ohai-$VERSION.gem to rubygems.org
rake spec # Run RSpec code examples
rake style # Run Chefstyle tests
rake style:auto_correct # Auto-correct RuboCop offenses
($VERSION is the current version, from the GemSpec in Rakefile)
Links
Source:
Issues:
Contributing
For information on contributing to this project see https://github.com/chef/chef/blob/main/CONTRIBUTING.md
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature' --signoff)
- Run the tests
bundle exec rake spec - Run the style tests
bundle exec rake style - Push to the branch (git push origin my-new-feature)
- Create new Pull Request
License
Ohai - system information application
- Author:: Adam Jacob (adam@chef.io)
- Copyright:: Copyright (c) 2008-2021 Chef Software, Inc.
- License:: Apache License, Version 2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Owner metadata
- Name: Progress Chef
- Login: chef
- Email: ops@chef.io
- Kind: organization
- Description:
- Website: https://www.chef.io/
- Location: United States of America
- Twitter: chef
- Company:
- Icon url: https://avatars.githubusercontent.com/u/29740?v=4
- Repositories: 245
- Last ynced at: 2023-04-10T00:51:04.360Z
- Profile URL: https://github.com/chef
GitHub Events
Total
- Delete event: 30
- Member event: 1
- Pull request event: 85
- Fork event: 5
- Issues event: 11
- Watch event: 4
- Issue comment event: 204
- Push event: 137
- Pull request review comment event: 44
- Pull request review event: 84
- Create event: 64
Last Year
- Delete event: 16
- Member event: 1
- Pull request event: 51
- Fork event: 4
- Issues event: 10
- Watch event: 3
- Issue comment event: 136
- Push event: 108
- Pull request review comment event: 41
- Pull request review event: 66
- Create event: 38
Committers metadata
Last synced: 26 days ago
Total Commits: 3,650
Total Committers: 397
Avg Commits per committer: 9.194
Development Distribution Score (DDS): 0.892
Commits in past year: 57
Committers in past year: 17
Avg Commits per committer in past year: 3.353
Development Distribution Score (DDS) in past year: 0.544
| Name | Commits | |
|---|---|---|
| Tim Smith | t****h@c****o | 395 |
| Tim Smith | t****4@g****m | 344 |
| Chef Expeditor | c****i@c****o | 335 |
| Theodore Nordsieck | t****o@o****m | 180 |
| Lamont Granquist | l****t@s****g | 137 |
| Bryan McLellan | b****m@o****m | 108 |
| danielsdeleo | d****n@o****m | 108 |
| Chef Expeditor | e****i@c****o | 81 |
| Adam Jacob | a****m@h****m | 78 |
| Claire McQuin | c****e@o****m | 72 |
| Benjamin Black | bb@j****l | 66 |
| sersut | s****r@o****m | 61 |
| Chef Expeditor | e****r@c****o | 44 |
| Claire McQuin | c****e@g****m | 43 |
| Phil Dibowitz | p****l@i****m | 34 |
| Davide Cavalca | d****a@f****m | 32 |
| Doug MacEachern | d****m@v****m | 29 |
| dependabot[bot] | 4****]@u****m | 29 |
| Jay Mundrawala | j****a@g****m | 28 |
| Bryan McLellan | b****m@w****m | 27 |
| sawanoboly | s****u@h****m | 27 |
| Phil Dibowitz | p****d@f****m | 25 |
| Shahul Hameed | s****1@b****t | 25 |
| Pete Higgins | p****e@p****g | 24 |
| Thom May | t****m@c****o | 23 |
| Thom May | t****m@m****t | 23 |
| jtimberman | j****a@o****m | 23 |
| Noah Kantrowitz | n****h@c****t | 22 |
| Bryan McLellan | b****m@l****g | 21 |
| kaustubh-d | k****h@c****m | 21 |
| and 367 more... | ||
Committer domains:
- chef.io: 23
- opscode.com: 23
- fb.com: 12
- getchef.com: 8
- progress.com: 7
- bloomberg.net: 6
- clogeny.com: 4
- rightscale.com: 3
- us.ibm.com: 3
- msystechnologies.com: 3
- criteo.com: 2
- brightcove.com: 2
- microsoft.com: 2
- oracle.com: 2
- bluebox.net: 2
- joyent.com: 2
- google.com: 2
- umn.edu: 2
- u-picardie.fr: 2
- josephholsten.com: 1
- apache.org: 1
- ipom.com: 1
- vmware.com: 1
- powertrip.co.za: 1
- meine-er.de: 1
- rednovalabs.com: 1
- douglasthrift.net: 1
- hyperic.com: 1
- schoology.com: 1
- widemile.com: 1
- mail.huji.ac.il: 1
- err.no: 1
- higanworks.com: 1
- blinkenlights.nl: 1
- peterhiggins.org: 1
- nerd.sh: 1
- geekdaily.org: 1
- martinisoftware.com: 1
- arista.com: 1
- chef.co: 1
- digitalocean.com: 1
- oboxodo.com: 1
- aussiegeek.net: 1
- scriptkiddie.org: 1
- wanelo.com: 1
- hjksolutions.com: 1
- ctso.me: 1
- daveeddy.com: 1
- emergya.com: 1
- carecloud.com: 1
- playtech.com: 1
- dysinger.net: 1
- tecracer.de: 1
- virelais.nyc.joostas.com: 1
- mazurka.lan: 1
- rnt.cl: 1
- tripadvisor.com: 1
- blueboxgrp.com: 1
- chrischambers.net: 1
- gfoil.ru: 1
- mattwrock.com: 1
- johnkeiser.com: 1
- mac.com: 1
- zuazo.org: 1
- maya.com: 1
- factory9.com: 1
- section6.net: 1
- stevenbeulow2.servepath.com: 1
- delfi.ee: 1
- cooperlees.com: 1
- clearairturbulence.org: 1
- magoazul.com: 1
- yoderhome.com: 1
- b1-systems.de: 1
- kisoku.net: 1
- llnw.com: 1
- rogueethic.com: 1
- nordstrom.com: 1
- safematix.com: 1
- amaze.com.au: 1
- digitar.com: 1
- livinginthepast.org: 1
- flowboard.com: 1
- joyeuese.(none): 1
- may.lt: 1
- parallels.com: 1
- coderanger.net: 1
- osuosl.org: 1
- eriknicolasgomez.com: 1
- blackie.(none): 1
- xnull.de: 1
- loftninjas.org: 1
- wilkosz.com.au: 1
- cozy.co: 1
- vidner.net: 1
- gcarrier.fr: 1
- cocoa-x.com: 1
- ip-1-70-103-68.dob1.bcpc.bloomberg.com: 1
- terra.runa.com: 1
- erisiandiscord.de: 1
- rottenbytes.info: 1
- fastly.com: 1
- mattray.dev: 1
- paperplanes.de: 1
- provapdc.sirea.net: 1
- igloonet.cz: 1
- devtation.de: 1
- malteswart.de: 1
- 3ofcoins.net: 1
- l2g.to: 1
- kylev.com: 1
- bcg.com: 1
- locamoda.com: 1
- tron.name: 1
- causes.com: 1
- rabb.it: 1
- shopify.com: 1
- blablacar.com: 1
- email.ucr.edu: 1
- cn.ibm.com: 1
- paulcz.net: 1
- cvshealth.com: 1
- foxmail.com: 1
- ktysolaris.(none): 1
- rosetta.com: 1
- ultimatesoftware.com: 1
- b3k.us: 1
- omniti.com: 1
- visioncritical.com: 1
- selfip.ru: 1
- altiscale.com: 1
- gmx.net: 1
- reallyenglish.com: 1
- betfair.com: 1
- tibux.org: 1
- localhost.localdomain: 1
- digitalriver.com: 1
- ertw.com: 1
- likens.us: 1
- wesabe.com: 1
- mit.edu: 1
- moriz.de: 1
- bene.dev.zenops.net: 1
- rexin.at: 1
- soundcloud.com: 1
- dravidam.net: 1
- intel.com: 1
- serversaurus.com: 1
- fraggaz.de: 1
- baboonlogic.com: 1
- achamo.net: 1
- becciu.org: 1
- zieglers.ca: 1
- leff.co: 1
- joetify.com: 1
- gmxxxx.com: 1
- ninefold.com: 1
- schubergphilis.com: 1
- ip-1-70-103-91.dob1.bcpc.bloomberg.com: 1
- dsc.co.tz: 1
- debian.org: 1
- applovin.com: 1
- aquezada.com: 1
- sprauer.net: 1
- nvwls.com: 1
- junglist.gen.nz: 1
- rackspace.com: 1
- ndpgroup.com: 1
- kernel.org: 1
- adobe.com: 1
- mani.ac.nz: 1
- nationalfield.org: 1
- cisco.com: 1
- done.hu: 1
- hron.me: 1
- openminds.be: 1
- webtrends.com: 1
- stormsilver.net: 1
- rcbth.com: 1
- engineyard.com: 1
- tardis.thefacebook.com: 1
- tiscali.it: 1
- gtmanfred.com: 1
- 10gen.com: 1
- pgi.com: 1
- d-69-91-159-195.dhcp4.washington.edu: 1
- d-69-91-153-195.dhcp4.washington.edu: 1
- bellycard.com: 1
- tippr.com: 1
- bur.io: 1
Issue and Pull Request metadata
Last synced: about 1 month ago
Total issues: 41
Total pull requests: 210
Average time to close issues: 11 months
Average time to close pull requests: 20 days
Total issue authors: 37
Total pull request authors: 51
Average comments per issue: 1.37
Average comments per pull request: 1.75
Merged pull request: 154
Bot issues: 0
Bot pull requests: 24
Past year issues: 5
Past year pull requests: 55
Past year average time to close issues: 18 days
Past year average time to close pull requests: 12 days
Past year issue authors: 5
Past year pull request authors: 16
Past year average comments per issue: 1.4
Past year average comments per pull request: 1.64
Past year merged pull request: 34
Past year bot issues: 0
Past year bot pull requests: 2
Top Issue Authors
- stanhu (2)
- comay (2)
- nvwls (2)
- feld (2)
- krayzie32 (1)
- demiph (1)
- jblaine (1)
- erikng (1)
- ziggythehamster (1)
- balasankarc (1)
- ChefAustin (1)
- tecracer-theinen (1)
- fuegas (1)
- jasonwbarnett (1)
- snohio (1)
Top Pull Request Authors
- johnmccrae (32)
- nikhil2611 (28)
- dependabot[bot] (24)
- sanghinitin (11)
- tas50 (11)
- jaymzh (11)
- muthuja (9)
- tpowell-progress (8)
- dafyddcrosby (7)
- ramereth (4)
- neha-p6 (4)
- feld (4)
- ETiV (3)
- stanhu (3)
- sanjain-progress (3)
Top Issue Labels
- Type: Bug (25)
- Status: Untriaged (24)
- Focus: Desktop (4)
- Platform: Windows (2)
- Status: Waiting on chef (1)
Top Pull Request Labels
- dependencies (24)
- Status: Waiting on Contributor (17)
- Expeditor: Bump Version Minor (10)
- ruby (7)
- Expeditor: Skip All (6)
- github_actions (4)
- Expeditor: Skip Version Bump (2)
- Backport: 17 (1)
- ai-assisted (1)
- Ohai: 18.2 (1)
Package metadata
- Total packages: 2
-
Total downloads:
- rubygems: 146,387,217 total
- Total docker downloads: 873,716,272
- Total dependent packages: 55 (may contain duplicates)
- Total dependent repositories: 7,188 (may contain duplicates)
- Total versions: 394
- Total maintainers: 4
gem.coop: ohai
Ohai profiles your system and emits JSON
- Homepage: https://github.com/chef/ohai/
- Documentation: http://www.rubydoc.info/gems/ohai/
- Licenses: Apache-2.0
- Latest release: 19.1.16 (published about 2 months ago)
- Last Synced: 2026-02-02T19:11:22.026Z (28 days ago)
- Versions: 197
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 73,211,670 Total
- Docker Downloads: 436,858,136
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.164%
- Docker downloads count: 0.272%
- Downloads: 0.385%
- Maintainers (4)
rubygems.org: ohai
Ohai profiles your system and emits JSON
- Homepage: https://github.com/chef/ohai/
- Documentation: http://www.rubydoc.info/gems/ohai/
- Licenses: Apache-2.0
- Latest release: 19.1.16 (published about 2 months ago)
- Last Synced: 2026-01-30T07:15:33.949Z (about 1 month ago)
- Versions: 197
- Dependent Packages: 55
- Dependent Repositories: 7,188
- Downloads: 73,175,547 Total
- Docker Downloads: 436,858,136
-
Rankings:
- Docker downloads count: 0.332%
- Downloads: 0.367%
- Dependent repos count: 0.38%
- Dependent packages count: 0.487%
- Average: 0.839%
- Forks count: 1.242%
- Stargazers count: 2.228%
- Maintainers (4)
Dependencies
- chefstyle = 2.2.2 development
- ipaddr_extensions >= 0 development
- pry >= 0 development
- pry-byebug >= 0 development
- pry-stack_explorer >= 0 development
- rake >= 10.1.0 development
- rb-readline >= 0 development
- rspec-collection_matchers ~> 1.0 development
- rspec-core ~> 3.0 development
- rspec-expectations ~> 3.0 development
- rspec-mocks ~> 3.0 development
- rubocop-performance = 1.14.2 development
- rubocop-rspec >= 0 development
- chef-config >= 0
- chef-utils >= 0
- chef-config >= 14.12, < 19
- chef-utils >= 16.0, < 19
- ffi ~> 1.9
- ffi-yajl ~> 2.2
- ipaddress >= 0
- mixlib-cli >= 1.7.0
- mixlib-config >= 2.0, < 4.0
- mixlib-log >= 2.0.1, < 4.0
- mixlib-shellout ~> 3.2, >= 3.2.5
- plist ~> 3.1
- train-core >= 0
- wmi-lite ~> 1.0
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
- actions/checkout v3 composite
- r7kamura/rubocop-problem-matchers-action v1 composite
- ruby/setup-ruby v1 composite
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
- actions/checkout v4 composite
- sonarsource/sonarqube-scan-action master composite
Score: 33.36043226049576