aboutsummaryrefslogtreecommitdiff
path: root/lib/facter/disks.rb
blob: 60975e50483896f4620e5a2d56cf589e4c9accc5 (plain)
1
2
3
4
5
6
7
# return the list of disks
Facter.add("disks") do
  confine :kernel => :linux
  setcode do
    `egrep '[sh]d[a-z]+$' /proc/partitions | awk '{ print $4 }' | xargs`.split(' ')
  end
end