From e2ea0b66b0801c0f83f84def14fdf8b09d30fa48 Mon Sep 17 00:00:00 2001 From: Tom Doherty Date: Wed, 13 Sep 2017 21:10:06 +0100 Subject: Allow specifying VLAN on RHEL/Centos Signed-off-by: Tom Doherty --- lib/chef/resource/ifconfig.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/chef/resource/ifconfig.rb') diff --git a/lib/chef/resource/ifconfig.rb b/lib/chef/resource/ifconfig.rb index 3673311348..e61d329a1e 100644 --- a/lib/chef/resource/ifconfig.rb +++ b/lib/chef/resource/ifconfig.rb @@ -48,6 +48,7 @@ class Chef @bonding_opts = nil @master = nil @slave = nil + @vlan = nil end def target(arg = nil) @@ -177,6 +178,14 @@ class Chef :kind_of => String ) end + + def vlan(arg = nil) + set_or_return( + :vlan, + arg, + :kind_of => String + ) + end end end -- cgit v1.2.1