search for: netmask_

Displaying 2 results from an estimated 2 matches for "netmask_".

Did you mean: netmask
2009 Oct 29
2
template issue: nested variables?
I need to do something like this node foo { $iface = pcn0 ... } # the template <%= network_<%= iface %> %>/<% netmask_<%= iface %> %> The idea being that a file would be built on the client holding the value of pcn0''s network/netmask Of course, I''m trying to avoid hard coding the interface name in order to keep my code portable. Thanks in advance for any tips --~--~---------~--~----~-...
2013 Nov 18
3
Is it possible to evaluate a string as a parameter name?
...a class parameter to create and lookup the resulting fact''s value. Is that possible? For example, my class will take the parameter "my_default_nic" from beyond. So I know that as long as $my_default_nic exists on the client, then so will facts like macaddress_<NIC>, netmask_<NIC>, and ipaddress_<NIC>. So I''m looking for a way to formulate those fact names and evaluate the result... Is this at all possible? Thanks for your thoughts! $my_default_nic = ''eth1'' > $ip_method = ''static'' > $my_ip = ??????????...