storcli

pdk
Puppet module to generate facts with types and providers to manage LSI MegaRAID controllers
Wagner Sartori Junior

Wagner Sartori Junior

trunet

2,545 downloads

861 latest version

5.0 quality score

Version information

  • 0.2.1 (latest)
  • 0.2.0
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Jul 28th 2020
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
  • Puppet >= 4.10.0 < 7.0.0
  • CentOS
    ,
    OracleLinux
    ,
    RedHat
    ,
    Scientific

Start using this module

Documentation

trunet/storcli — version 0.2.1 Jul 28th 2020

puppet-storcli

Puppet module to generate facts with types and providers to manage LSI MegaRAID controllers.

License

Table of Contents

Description

This puppet module generate facts and provides types and providers to manage LSI MegaRAID controllers.

Setup

Setup Requirements

This module makes use of storcli. The package needs to be available from some repository to be installed.

Usage

include storcli

Reference

Items not covered by puppet strings are provided below.

See REFERENCE for all other reference documentation.

Facts

  • megaraid - structured fact
    • present? - Boolean - check if /sys/bus/pci/drivers/megaraid_sas is present?
    • storcli - String - location of storcli application.
    • number_of_controllers - Integer - number of megaraid controllers found
    • controllers - Hash[Controller number] - structured fact of megaraid controller informations
      • product_name - String - Product name
      • serial_number - String - Serial number
      • fw_package_build - String - Firmware Package Build
      • fw_version - String - Firmware Version
      • bios_version - String - Controller BIOS Version
      • patrol_read - Hash - Patrol read information
        • PR Mode - String - Mode
        • PR Execution Delay - Integer - Execution delay in hours
        • PR iterations completed - Integer - How many times patrol read ran?
        • PR Next Start time - DateTime - Next time patrol read will run
        • PR on SSD - Boolean - Run on SSDs?
        • PR Current State - String - Is it running or stopped?
        • PR Excluded VDs - String - VDs that will not run patrol read
        • PR MaxConcurrentPd - Integer - Maximum number of concurrent PDs
      • consistency_check - Hash - Consistency check information
        • CC Operation Mode - String - Mode
        • CC Execution Delay - Integer - Execution delay in hours
        • CC Next Starttime - DateTime - Next time patrol read will run
        • CC Current State - String - Is it running or stopped?
        • CC Number of iterations - Integer - How many times patrol read ran?
        • CC Number of VD completed - Integer - Number of VDs completed
        • CC Excluded VDs - String - VDs that will not run patrol read

Limitations

For now, this module only provides a custom fact and ways to deal with patrol read and consistency check.

Development

Contributions are welcome through pull requests. I will only accept PRs with tests covering the parts of the code you touched.

Before sending the PR, run the tests and regenerate puppet strings references:

# pdk validate
# pdk test unit
# pdk bundle exec puppet strings generate --format markdown --out REFERENCE.md