summaryrefslogtreecommitdiff
path: root/lib/chef/resource/ifconfig.rb
diff options
context:
space:
mode:
authorTom Doherty <tom.doherty@fixnetix.com>2017-09-13 21:10:06 +0100
committerTom Doherty <tom.doherty@fixnetix.com>2017-09-13 21:10:06 +0100
commite2ea0b66b0801c0f83f84def14fdf8b09d30fa48 (patch)
tree5b44386d51362199b2cf54ba9bbccb7153ee808c /lib/chef/resource/ifconfig.rb
parent4aaee228cec3df85018094350d95a90f62e774e4 (diff)
downloadchef-e2ea0b66b0801c0f83f84def14fdf8b09d30fa48.tar.gz
Allow specifying VLAN on RHEL/Centos
Signed-off-by: Tom Doherty <tom.doherty@fixnetix.com>
Diffstat (limited to 'lib/chef/resource/ifconfig.rb')
-rw-r--r--lib/chef/resource/ifconfig.rb9
1 files changed, 9 insertions, 0 deletions
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