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
Hprest installs the hprest (RESTful Interface Tool) on your node, and provides custom resources to send valid hprest commands
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.
- Windows Server 2012, Ubuntu, Debian, Red Hat Linux
- Chef 12.0 or later
Include hprest
in your node's run_list
to install hprest.
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'
- 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
- 01/10/2017: Initial Commit
Copyright 2017 Hewlett Packard Enterprise Development LP
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.