Re: [Puppet Users] Re: Checking for free disk space on mountpoint?

2011-07-12 Thread vagn scott
On 07/12/2011 01:05 AM, Patrick wrote: Keep in mind that, this being unix, there's no drives so if you will probably be checking the amount of space on root if you don't think about it. There most certainly are drives in unix. Not drive letters, though. The drives are normally denoted

Re: [Puppet Users] Re: Checking for free disk space on mountpoint?

2011-07-12 Thread Patrick
On Jul 11, 2011, at 11:10 PM, vagn scott wrote: On 07/12/2011 01:05 AM, Patrick wrote: Keep in mind that, this being unix, there's no drives so if you will probably be checking the amount of space on root if you don't think about it. There most certainly are drives in unix. Not drive

Re: [Puppet Users] Re: Checking for free disk space on mountpoint?

2011-07-11 Thread Victor Hooi
Ken, Currently, the existing processes we have are quite ad-hoc, and developers are often responsible for deployment, which is done by hand. I'm hoping Puppet will automate the process, provide better standardisation, and segregate development away from deployment/production. All the things

Re: [Puppet Users] Re: Checking for free disk space on mountpoint?

2011-07-11 Thread vagn scott
On 07/11/2011 10:37 PM, Victor Hooi wrote: As long as we have more the x bytes available when we install things, we know we'll be fine. Here is a proof of concept. With a little tweaking you should be able to test for an absolute amount of free space on any mounted volume. Hope that helps,

Re: [Puppet Users] Re: Checking for free disk space on mountpoint?

2011-07-11 Thread Patrick
On Jul 11, 2011, at 7:37 PM, Victor Hooi wrote: Ken, Currently, the existing processes we have are quite ad-hoc, and developers are often responsible for deployment, which is done by hand. I'm hoping Puppet will automate the process, provide better standardisation, and segregate

Re: [Puppet Users] Re: Checking for free disk space on mountpoint?

2011-07-08 Thread Victor Hooi
heya, Excuse me if my understanding of your needs is completely out of whack :-). Maybe you want to describe what you want to do with this data once you have gathered it. The reason we are doign this is to make sure that we have sufficient free disk space on various mountpoints to actually

Re: [Puppet Users] Re: Checking for free disk space on mountpoint?

2011-07-08 Thread Ken Barber
The reason we are doign this is to make sure that we have sufficient free disk space on various mountpoints to actually run the application on the server. Oh - and your monitoring doesn't do this already? So this is something I'd like to enforce (or ensure) as part of the configuration.

[Puppet Users] Re: Checking for free disk space on mountpoint?

2011-07-07 Thread Kent
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,

Re: [Puppet Users] Re: Checking for free disk space on mountpoint?

2011-07-07 Thread Doug Warner
Here's my hack-y fact that adds facts for mounted partitions on linux w/ disk used, available, and total as well as a fact for all available mounts. -Doug --- begin --- mounts = [] mntpoints=`mount -t ext2,ext3,ext4,reiserfs,xfs` mntpoints.split(/\n/).each do |m| mount = m.split(/ /)[2]