Skip to content

Commit

Permalink
add basic README info
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Hoblitt committed May 20, 2014
1 parent 28cecec commit 70eaabb
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Modulefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ author 'Joshua Hoblitt <jhoblitt@cpan.org>'
license 'Apache'
project_page 'https://github.com/jhoblitt/puppet-mdadm'
source 'https://github.com/jhoblitt/puppet-mdadm.git'
summary 'module skeleton'
description 'module skeleton'
summary 'Manages the `mdadm` util for Linux software RAID arrays'
description 'Manages the `mdadm` util for Linux software RAID arrays'
dependency 'puppetlabs/stdlib', '>= 3.0.0'
79 changes: 78 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Puppet mdadm Module
=========================
===================

[![Build Status](https://travis-ci.org/jhoblitt/puppet-mdadm.png)](https://travis-ci.org/jhoblitt/puppet-mdadm)

Expand All @@ -18,20 +18,94 @@ Puppet mdadm Module
Overview
--------

Manages the `mdadm` util for Linux software RAID arrays


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

This module installs the
[`mdadm`](http://www.linuxfoundation.org/collaborate/workgroups/linux-raid)
package for the management of Linux Software RAID arrays, and provides limited
configuration support. Specifically, this module does not presently provide
any support for the creation, modification, or removal of `md` arrays.
Management is limited to configuring monitoring of pre-existing `md` arrays,
and array health checks.


Usage
-----

### Example

```puppet
include ::mdadm
```

### Classes

#### `mdadm`

```puppet
# defaults
class { '::mdadm':
config_options => {},
force_service => false,
service_ensure => 'running',
service_enable => true,
raid_check_options => {},
}
```

##### `config_options`

`Hash` defaults to '{}'

##### `force_service`

`Bool` defaults to 'false'

##### `service_ensure`

`String` defaults to 'running'

Valid strings are: 'running', 'stopped'

##### `service_enable`

`Bool` defaults to 'true'

##### `raid_check_options`

`Hash` defaults to '{}'

### Facts

#### `mdadm`

Path to the `mdadm` executable. Example:

/sbin/mdadm

#### `mdadmversion`

Version string of the `mdadm` executable. Example:

v3.2.3

#### `mdadm_arrays`

A listing of `/dev/<foo>` `md` devices. Example:

/dev/md0,/dev/md1

Limitations
-----------

### Tested Platforms

* el6.x

Versioning
----------
Expand All @@ -50,3 +124,6 @@ Please log tickets and issues at
See Also
--------

* http://www.linuxfoundation.org/collaborate/workgroups/linux-raid
* http://neil.brown.name/blog/mdadm
* https://raid.wiki.kernel.org/index.php/RAID_setup

0 comments on commit 70eaabb

Please sign in to comment.