Forge Home

hddtemp

hddtemp configuration module.

6,732 downloads

6,732 latest version

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

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 1.0.3 (latest)
released Nov 9th 2017
This version is compatible with:
  • , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'jgazeley-hddtemp', '1.0.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jgazeley-hddtemp
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jgazeley-hddtemp --version 1.0.3

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

jgazeley/hddtemp — version 1.0.3 Nov 9th 2017

hddtemp

Build Status

Table of Contents

  1. Overview
  2. Compatability
  3. Dependencies
  4. Examples
  5. Parameters
  6. Limitations
  7. License
  8. Development

Overview

This Puppet module is designed to facilitate the installation and configuration of hddtemp. The primary scope includes installing the package on the system and populating the init script with the appropriate devices.

At this time only sd* devices are correctly autoconfigured. IDE devices are not supported and must be manually configured.

This module is best used with heira and the "virtual_%{::is_virtual}" directive in it hierarchy configuration so it may be applied to only physical machines.

Compatability

Facter 1.7 or greater is required for this module to function.

It has been tested to work with puppet versions 3.0.x and greater.

It will work with puppet 2.7 but fails if ruby is >=2.0.0.

The module is known to work on the following distributions:

  • Centos 6.x
  • SLES 11
  • Fedora 18+

Dependencies

  • Facter 1.7 or greater (blockdevices is absent in older versions.)
  • puppetlabs/stdlib

Examples

With traditional puppet node configuration:

class { 'hddtemp':
  service_manage      => true,
  service_enable      => true,
  service_ensue       => 'running'
  package_ensue       => 'latest'
  monitored_drives    => 'sda,sdb'
  listen_addr         => '127.0.0.1'
  listen_port         => '7634'
}

With heira:

---
classes:
  - hddtemp

hddtemp::service_manage: true
hddtemp::service_enable: true
hddtemp::service_ensure: 'running'
hddtemp::package_ensure: 'latest'
hddtemp::monitored_drives: 'sda,sdb'
hddtemp::listen_addr: '127.0.0.1'
hddtemp::listen_port: '7634'

Parameters

All Parameters are optional, if no drives are specified the module will add all /dev/sd* devices to the list to be monitored.

Variable Default Value Description
listen_addr localhost IP Address to listen on for incoming connections.
listen_port 7634 Port to listen on.
monitored_drives none This must be specified as a comma seperated string. 'sda,sdb,sdc'
use_syslog false Log temps to syslog periodically
syslog_interval 1800 1800 seconds (30 minutes) Time in seconds to log temps to syslog.

Limitations

The module only looks for /dev/sd* devices, IDE evices may be added manually, if any remain in the wild I suggest an upgrade.

Due to the init script in use in SLES 11 and other distros multiple erb templates are required.

At this time automatic configuration makes no attempt to ignore USB devices and will add them as well. Some do present S.M.A.R.T. data and so are valid, but they would still be best ignored.

License

GPL v2

Development

Please report issues or submit a pull request.