HI Victor, You can write a simple custom Fact (leveraging the Facter library that Puppet uses) that will run something like 'df' and parse the output. Your puppet agents will report their disk usage, along with all the other Facts, every time they make a Puppet run.
-Kent On Jul 6, 8:34 pm, Victor Hooi <victorh...@gmail.com> wrote: > Hi, > > I'm currently looking at migrating from some home-rolled Python scripts to > using Puppet =). > > One of the things we need to check for is that there is sufficient free disk > space on a mountpoint (for logging etc.) this is currently quite easy in > Python using statvfs(). > > Are there any resources in Puppet that might be able to do this? I checked > the mount type > (http://docs.puppetlabs.com/references/stable/type.html#mount), but it > didn't seem to have anything to do this. > > Cheers, > Victor -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.