puppet-standalone-mashup/shared/lib/facter/varnish_cache_size.rb
2012-07-05 17:05:53 -04:00

7 lines
125 B
Ruby

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