HewlettPackard/ilo-chef

Name: ilo-chef

Owner: Hewlett Packard Enterprise

Description: iLO Resource Provider for Chef

Created: 2016-06-27 17:46:07.0

Updated: 2018-03-15 19:29:39.0

Pushed: 2018-03-15 19:42:38.0

Homepage: null

Size: 290

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

iLO Cookbook

Cookbook Version Travis Build Status Chef Build Status

Enables configuration of HPE iLOs via their APIs.

Requirements
Cookbook Dependencies
How to use the iLO Cookbook:

This cookbook is not intended to include any recipes. Use it by specifying a dependency on this cookbook in your own cookbook.

_cookbook/metadata.rb

nds 'ilo'

Now you can use the resources this cookbook provides. See below for some examples.

iLO Authentication

Each of the resources below requires you to pass in the info necessary to connect with the iLO API. The basic structure accepted by the ilos property is an array of hashes (or ILO_SDK::Client objects):

 = [

host: 'ilo1.example.com',  # Required. IP or hostname
user: 'Administrator',     # Optional. Defaults to 'Administrator'
password: 'secret123',     # Required
ssl_enabled: false         # Optional


host: '10.0.0.3',
user: 'User2',
password: 'secret456'


This array can be built using a variety of different sources, including [encrypted] databags, attributes, or read from json or yaml files. For example:

t directly in recipe:
list1 = []
list1.push { host: 'ilo1.example.com', user: 'Administrator', password: 'secret123' }

ad from data_bag:
list2 = data_bag_item('ilo_secrets', 'data_center_1')

ad from yaml file:
list3 = YAML.load_file('/root/ilo_secrets.yml')
iLO Resources

The following resources are available for usage in your recipes. We give examples to show how to use each resource, but there are much more detailed examples in the examples directory. You may also find the recipes in the cookbook used for testing helpful as examples.

ilo_bios
ilo_boot_settings
ilo_chassis
ilo_computer_details
ilo_computer_system
ilo_date_time
ilo_firmware_update
ilo_https_cert

Note that this resource requires an ilo property (Hash or ILO_SDK::Client) instead of an ilos property (Array). You'll need separate ilo_https_cert resources for each iLO you'd like to perform a task on.

ilo_log_entry
ilo_manager_network_protocol
ilo_power
ilo_secure_boot
ilo_service_root
ilo_snmp_service
ilo_user
ilo_virtual_media
Examples

See the examples directory for examples with more detailed descriptions of using these resources. It may also be helpful to take a look at recipes in the cookbook used for testing.

Contributing & Feature Requests

Contributing: Please see CONTRIBUTING.md for more info.

Feature Requests: If you have a need that is not met by the current implementation, please let us know (via a new issue). This feedback is crucial for us to deliver a useful product. Do not assume we have already thought of everything, because we assure you that is not the case.

License

This project is licensed under the Apache 2.0 license. Please see LICENSE for more info.

Testing

Please see CONTRIBUTING.md for more info.

Authors

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.