1 2 3 4 5 6 7 8 9 10 11 12 |
if File("/etc/facts.txt") File("/etc/facts.txt") do |line| if line =~ /^(.+)=(.+)$/ var = $1 val = $2 Facter(var) do setcode {val } end end end end |
1 2 3 4 5 6 7 8 9 10 11 12 |
if File("/etc/facts.txt") File("/etc/facts.txt") do |line| if line =~ /^(.+)=(.+)$/ var = $1 val = $2 Facter(var) do setcode {val } end end end end |