cookbook 'hprest', '~> 1.0.0'
hprest (1) Versions 1.0.0 Follow1
cookbook for installing and using hprest to configure and manage server settings
cookbook 'hprest', '~> 1.0.0', :supermarket
knife supermarket install hprest
knife supermarket download hprest
hprest Cookbook
Table of Contents
Description
hprest is a Chef cookbook that installs the Hewlett-Packard RESTful Interface Tool, and provides
recipes to use Chef to manage your node's settings
What does hprest do?
hprest installs the hprest (RESTful Interface Tool) on your node, and provides custom resources
to send valid hprest commands
Requirements
hprest has no dependencies, and only requires the node to be able to access Hewlett-Packard Enterprise's
repositories.
It is strongly suggested by Chef and us that chef-client be run as root or administrator, to ensure that everything is working properly. If root/administrator is not used, hprest may fail.
Platforms
- Windows Server 2012, Ubuntu, Debian, Red Hat Linux
Chef
- Chef 12.0 or later
Usage
hprest::default
include hprest
in your node's run_list
to install hprest.
Custom Resources
hprest
includes an 'hprest' resource that is used to provide valid hprest commands to the node.
This can be used by adding in commands you wish to use in the service.rb file
Example service.rb file
hprest 'login 10.0.0.100 -u admin -p password' hprest 'types' hprest 'select HpBios.' hprest 'set AdminName="John Doe"' hprest 'get AdminName' hprest 'commit'
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Authors: TODO: List authors
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
hprest CHANGELOG
This file is used to list changes made in each version of the hprest cookbook.
1.0.0
- [lumbajack] - Initial release of hprest
Collaborator Number Metric
1.0.0 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.0.0 failed this metric
FC066: Ensure chef_version is set in metadata: hprest/metadata.rb:1
FC117: Do not use kind_of in custom resource properties: hprest/resources/hprest.rb:3
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.0 failed this metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.0.0 failed this metric
FC066: Ensure chef_version is set in metadata: hprest/metadata.rb:1
FC117: Do not use kind_of in custom resource properties: hprest/resources/hprest.rb:3
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.0 failed this metric
FC117: Do not use kind_of in custom resource properties: hprest/resources/hprest.rb:3
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.0.0 passed this metric
Testing File Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.0 failed this metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number