puppet-standalone-mashup/shared/lib/facter/varnish_cache_size.rb

7 lines
125 B
Ruby
Raw Normal View History

2012-07-05 21:05:53 +00:00
Facter.add("varnish_cache_size") do
setcode do
%x{df -m /var}.lines.to_a.last.strip.split(/ +/)[1].to_i / 4
end
end