Forge Home

hprest

Installs and utilizes Hprest to manage server settings

5,479 downloads

5,479 latest version

3.4 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.0.0 (latest)
released Aug 18th 2016

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'lumbajack-hprest', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add lumbajack-hprest
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install lumbajack-hprest --version 1.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

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

Overview

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

Description

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.

Installation

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.

Usage

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 10.0.0.0 -u admin -p password',
  } ->
  hprest::service {'types':
    command => 'types',
  } ->
  hprest::service {'select':
    command => 'select HpBios.',
  }
}