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

9 lines
196 B
Ruby

Facter.add('all_ip_addresses') do
setcode do
Facter.collection.list.find_all { |fact| fact[%r{^ipaddress_}] }.collect do |fact|
Facter[fact].value
end.compact.join(',')
end
end