HewlettPackard/puppet-hprest-module

Name: puppet-hprest-module

Owner: Hewlett Packard Enterprise

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

Created: 2016-08-04 18:34:33.0

Updated: 2017-05-03 20:27:26.0

Pushed: 2017-05-01 19:51:12.0

Homepage: https://forge.puppet.com/lumbajack/hprest

Size: 16

Language: Puppet

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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:

et 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.

 default {
ass {'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.

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


History
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

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.