Displaying 1 result from an estimated 1 matches for "my_netmask".
Did you mean:
ip_netmask
2013 Nov 18
3
Is it possible to evaluate a string as a parameter name?
....
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 {
> ''static'': {
> network::static { $my_default_nic:
> ensure => up,
> ipaddress => $my_ip,
> netmask => $my_netmask,
> }...