Skip to content

Commit

Permalink
rename README -> README.md, tweak README, mv all API docs to smartd.pp
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Hoblitt committed May 15, 2013
1 parent 096eb58 commit 9982990
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 61 deletions.
59 changes: 0 additions & 59 deletions README

This file was deleted.

47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
Puppet smartd Module
====================

Description
-----------

This is the `smartd` module and class. It configures the `smartd` daemon,
which comes with smartmontools, and works on FreeBSD and Debian-ish Linux
systems. If your hardware supports it, smartd can automatically probe for the
drives, but if they are hidden behind a RAID controller, it will need
additional help. The module includes a facter plugin to identify drives hiding
behind an LSI MegaRAID/Dell PERC controller on Linux systems if you have the
LSI proprietary `MegaCli` tool installed; we don't have any FreeBSD machines
with this controller so haven't written the necessary code to use FreeBSD's
standard mfiutil(8) utility instead. The `shell_config` module is required to
edit a Debian-specific configuration file; other OS families do not require it.

The module automatically configures a virtual `monit::monitor` resource (tag =>
default) to keep track of `smartd`. Note that `smartd` can take a very long
time to (re)start, so if you have a large number of disk devices (e.g., 200 on
a big ZFS file server) you will need to adjust `monit`'s startup delay.

Currently, drives behind an LSI MegaRAID controller will be automatically
probed and added to the `smartd` configuration file, if the `MegaCli` utility
is installed. There is no way to turn this behavior off. This is arguably a
bug.

Examples
--------

### Basic Usage

class{ 'smartd': }


Support
-------

Please log tickets and issues at [github](https://github.com/jhoblitt/puppet-smartd/issues)

License
-------
See the file LICENSE.

Contact
-------
Joshua Hoblitt <[email protected]>
14 changes: 12 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
#
# All parameteres are optional.
#
# [*ensure*]
# String.
#
# Standard Puppet ensure semantics (and supports `purged` state if your
# package provider does).
#
# defaults to: `present`
#
# [*autoupdate*]
# Boolean.
#
Expand Down Expand Up @@ -33,12 +41,14 @@
#
# Path to the configuration file for the monitoring daemon.
#
# defaults to: '/etc/smartd.conf'
# defaults to: (OS-specific)
#
# [*devicescan*]
# Boolean.
#
# Sets the `DEVICESCAN` directive in the smart daemon config file.
# Sets the `DEVICESCAN` directive in the smart daemon config file. Tells the
# smart daemon to automatically detect all of the SMART-capable drives in the
# system.
#
# defaults to: true
#
Expand Down

0 comments on commit 9982990

Please sign in to comment.