diff --git a/manifests/init.pp b/manifests/init.pp index 6f092608..1ff30d69 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -98,6 +98,7 @@ $netmask, $macaddress, $gateway = '', + $if_type = 'Ethernet', $ipv6address = '', $ipv6gateway = '', $ipv6init = false, diff --git a/templates/ifcfg-eth.erb b/templates/ifcfg-eth.erb index 1940e101..27465ace 100644 --- a/templates/ifcfg-eth.erb +++ b/templates/ifcfg-eth.erb @@ -7,7 +7,7 @@ BOOTPROTO=<%= @bootproto %> <% end -%> ONBOOT=<%= @onboot %> HOTPLUG=<%= @onboot %> -TYPE=Ethernet +TYPE=<%= @if_type %> <% if !@ipaddress.empty? %>IPADDR=<%= @ipaddress %> <% end -%> <% if !@netmask.empty? %>NETMASK=<%= @netmask %>