A Puppet module containing a set of facts about system disk stats and usage.
- CentOS 6.4
- Ubuntu 12.04 LTS
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.
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.
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.
Please file tickets and issues using GitHub Issues
Copyright 2013 Alex Cline email@example.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
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.