disk_stats
Version information
Start using this module
Add this module to your Puppetfile:
mod 'AlexCline-disk_stats', '0.3.0'
Learn more about managing modules with a PuppetfileDocumentation
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.