Skip to content
This repository has been archived by the owner on Nov 26, 2018. It is now read-only.

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

Notifications You must be signed in to change notification settings

AlexCline/puppet-disk_stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages