Skip to content

Yergidy/puppet-hprest-module

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HPREST Puppet Module

Build Status Puppet Forge GitHub license Codacy grade

Table of Contents

  1. Overview
  2. Description
  3. Setup
  4. Installation
  5. Usage
  6. History
  7. License
  8. Authors

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.',
  }
}

History

  • 08/19/2016: Initial Commit

License

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.

Authors

About

Puppet module for installing the hprest utility and showcasing a few examples.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Puppet 74.7%
  • Ruby 25.3%