From 0c71f05fbd0bb6f95b8494c84c4403d4c1bdab1f Mon Sep 17 00:00:00 2001 From: Tomas Doran Date: Thu, 21 May 2015 15:44:46 +0100 Subject: [PATCH] Allow if_type to be configured --- manifests/init.pp | 1 + templates/ifcfg-eth.erb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 %>