Forge Home

disk_stats

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

12,241 downloads

9,082 latest version

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

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

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

Add this module to your Puppetfile:

mod 'AlexCline-disk_stats', '0.3.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add AlexCline-disk_stats
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install AlexCline-disk_stats --version 0.3.0

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

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.