linux-on-ibm-z/ohai

Name: ohai

Owner: LinuxONE and Linux on z Systems Open-source Team

Description: Development repository for Chef Cookbook ohai

Created: 2016-04-12 16:57:25.0

Updated: 2016-04-12 16:57:26.0

Pushed: 2016-04-13 04:43:49.0

Homepage: https://supermarket.chef.io/cookbooks/ohai

Size: 91

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

ohai Cookbook

Build Status Cookbook Version

Creates a configured plugin path for distributing custom Ohai plugins, and reloads them via Ohai within the context of a Chef Client run during the compile phase (if needed).

Requirements
Platforms
Chef
Cookbooks
Attributes
Usage

Put the recipe ohai at the start of the node's run list to make sure that custom plugins are loaded early on in the Chef run and data is available for later recipes.

The execution of the custom plugins occurs within the recipe during the compile phase, so you can write new plugins and use the data they return in your Chef recipes.

For information on how to write custom plugins for Ohai, please see the Chef Docs page

https://docs.chef.io/ohai_custom.html

PLEASE NOTE - This recipe reloads the Ohai plugins a 2nd time during the Chef run if:

LWRP
ohai_hint

Create hints file. You can find usage examples at test/cookbooks/ohai_test/recipes/*.rb.

Resource Attributes ChefSpec Matchers

You can check for the creation or deletion of ohai hints with chefspec using these custom matches:

Example

For an example implementation, inspect the ohai_plugin.rb recipe in the nginx community cookbook.

License & Authors

Author: Cookbook Engineering Team (cookbooks@chef.io)

Copyright: 2011-2016, Chef Software, Inc.

nsed under the Apache License, Version 2.0 (the "License");
may not use this file except in compliance with the License.
may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

ss required by applicable law or agreed to in writing, software
ributed under the License is distributed on an "AS IS" BASIS,
OUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
the License for the specific language governing permissions and
tations under the License.

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.