Displaying 1 result from an estimated 1 matches for "final_hwaddr".
2011 May 23
2
Variable interpolation challenge
...variable as part of the name of a fact, but
the interpolation doesn''t work as expected. I''ve allowed for passing the
mac address into my define() but if it''s not provided I want to look it up
via facter.
if "$macaddress_${name}" {
$final_hwaddr = "$macaddress_${name}"
}
I want Puppet to look up the value of macaddress_eth0 or whatever, but
instead it returns the value of $name. How can I get the appropriate value?
--
You received this message because you are subscribed to the Google Groups "Puppet Users"...