Installs and utilizes Hprest to manage server settings

Jack Garcia



4,398 latest version

3.4 quality score

Version information

  • 1.0.0 (latest)
released Aug 18th 2016

Start using this module


lumbajack/hprest — version 1.0.0 Aug 18th 2016

HPREST Puppet Module

Build Status Puppet Forge GitHub license Codacy grade

####Table of Contents

  1. Overview
  2. Description
  3. Setup
  4. Installation
  5. Usage


Puppet module for installing the hprest interface tool, and utilizing it to manage server settings.


hprest is a module that installs the RESTful Interface Tool, also known as hprest. Through the use of defined types, users can send any valid RESTful Interface command through the hprest module to the node server.


Use this command to install hprest:

puppet module install lumbajack-hprest

For a manual installation, download this module as a zip, and unzip it in your modules folder. The hprest module directory should be simply named “hprest”, so the node definition will recognize the module as hprest.

Note: If installing manually, or from this repository, ensure the folder is named “hprest” so Puppet can locate the module.


hprest by itself will install the HPE RESTful Interface Tool from HPE's official respository. This can be triggered by including the hprest class.

node default {
  class {'hprest':}

To write your own commands to be sent, we utilize the service defined type. Ensure that each resource name is different, or puppet will throw an error. It is best to name them to reflect their usage. Additionally, the use of ordering arrows is important. hprest must first be installed, and the server must be logged into before anything can done, thus the login resource must be ordered before the types resource. Note, that the RESTful Interface Tool can be logged into remotely and locally through the hprest module. Simply exclude -u,-p and exclude the credentials.

node default {
  class { 'hprest':} ->
  hprest::service {'login':
    command => 'login -u admin -p password',
  } ->
  hprest::service {'types':
    command => 'types',
  } ->
  hprest::service {'select':
    command => 'select HpBios.',