disk_stats

A Puppet module containing a set of facts about system disk stats and usage.

Alex Cline

AlexCline

10,415 downloads

8,130 latest version

3.9 quality score

Version information

  • 0.3.0 (latest)
  • 0.2.8
  • 0.2.7
  • 0.2.6
  • 0.2.5
  • 0.2.4
  • 0.2.3
  • 0.2.2
  • 0.2.1
  • 0.2.0
  • 0.1.1
  • 0.1.0
  • 0.0.4
  • 0.0.3
  • 0.0.2
  • 0.0.1
released May 22nd 2013

Start using this module

Documentation

AlexCline/disk_stats — version 0.3.0 May 22nd 2013

disk_stats

A Puppet module containing a set of facts about system disk stats and usage.

Tested on:

  • CentOS 6.4
  • Ubuntu 12.04 LTS

Examples

Facts are created for each mounted partition in the system. The name of the fact is generated from the mount path of the partition.

disk_stats_root_free => 18 GB
disk_stats_root_options => rw,errors=remount-ro
disk_stats_root_path => /
disk_stats_root_size => 20 GB
disk_stats_root_type => ext4
disk_stats_root_used => 2 GB

Note: Swap and binfmt partitions and devices with 0 blocks are not shown.

Installation

The disk_stats module requires rubygems and the 'sys/filesystem' gem. You can install it using:

gem install sys-filesystem

Or, you can include the 'disk_stats' class on your nodes to install the required dependencies.

include disk_stats

If your node doesn't have the required dependencies on the first puppet run, the facts will not be properly populated. You'll need to run puppet twice: one to install deps, one to populate the facts.

Support

Please file tickets and issues using GitHub Issues

License

Copyright 2013 Alex Cline alex.cline@gmail.com

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.