Displaying 1 result from an estimated 1 matches for "ip_method".
Did you mean:
op_method
2013 Nov 18
3
Is it possible to evaluate a string as a parameter name?
...lient, 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 = ??????????? ### <- should end up looking
> like the value of $::ipaddress_eth1 with out hardcoding eth1
> $my_netmask = ????????? ### <- <same idea as $my_ip>
>
> case $ip_method {
>...