blob: 3653a5ea0859ebbe5ccf9fb0e1438b481bdc94e1 (
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 &> /dev/null | awk '{ print $4 }' | xargs`.split(' ')
end
end
|