2009/9/15 Steven Jenkins <[email protected]>:
>
> Felix Schäfer wrote:
>> Hello,
>>
>> I'm not quite sure if this list is the right to discuss facter-related
>> stuff, but I couldn't find another one, so here it goes.
>>
>> I'm in the process of writing facts to get the size and usage of a
>> partition. Finding the size in /sys wasn't too hard, but I can't find
>> how much is actually used in either /proc or /sys. Am I just missing
>> something, or will I have to resolve myself to using `df` or something
>> similar (which I'd rather like to avoid, for that matter)?
>>
>
> I don't know the status of disk usage in Facter, but why wouldn't you leverage
> df?  It already exists, and is part of the Unix standards[1].  If you read 
> /sys
> or /proc, well, that assumes existence of /sys or /proc, which are not widely
> cross-platform.

Indeed using df on *NIX is probably the correct approach, although
Facter also has to support Win32.

These sort of facts will make much more sense when we have proper
encapsulation of facts and a richer internal model.

For now if you are writing a fact for submission for df please see the
wiki for submission/review process:

http://reductivelabs.com/trac/puppet/wiki/Development/DevelopmentLifecycle

Paul

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to