diff options
author | Tim Smith <tsmith@chef.io> | 2018-07-16 11:35:58 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-07-16 16:17:18 -0700 |
commit | 75dcbefc8b10059d2d123593723c3b366877e262 (patch) | |
tree | 09abfa7c84a247b11b9a9ed4f918a86caaaf1ed6 /lib/chef/resource/ifconfig.rb | |
parent | ad6760303f10bef9e97aa3fe4b681e2dc78b9f2c (diff) | |
download | chef-ifconfig.tar.gz |
ifconfig: Add gateway property on RHEL/Debian based systemsifconfig
This reimplements #6279 after our conversion of this resource to use properties. It also adds support for RHEL since that's documented here:
https://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-networkscripts-interfaces.html
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/ifconfig.rb')
-rw-r--r-- | lib/chef/resource/ifconfig.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/chef/resource/ifconfig.rb b/lib/chef/resource/ifconfig.rb index 2ea0381991..e2a35e6d43 100644 --- a/lib/chef/resource/ifconfig.rb +++ b/lib/chef/resource/ifconfig.rb @@ -45,8 +45,8 @@ class Chef property :mask, String, description: "The decimal representation of the network mask. For example: 255.255.255.0." - property :family, String, - default: "inet", introduced: "14.0", + property :family, String, default: "inet", + introduced: "14.0", description: "Networking family option for Debian-based systems. For example: inet or inet6." property :inet_addr, String, @@ -96,6 +96,10 @@ class Chef property :vlan, String, introduced: "14.4", description: "The VLAN to assign the interface to." + + property :gateway, String, + introduced: "14.4", + description: "The gateway to use for the interface." end end end |