summaryrefslogtreecommitdiff
path: root/lib/chef/resource/ifconfig.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-02-13 16:34:47 +0000
committerTim Smith <tsmith@chef.io>2018-02-14 11:37:36 -0800
commit5c2b9e201f65d04252a86b1ad89d756f3e73792f (patch)
tree7eaa3b8131eef7afa79422a79b0219021a5972b6 /lib/chef/resource/ifconfig.rb
parentc563a379b2ac9a47f5bd5c9e0c40bebed86aae8c (diff)
downloadchef-5c2b9e201f65d04252a86b1ad89d756f3e73792f.tar.gz
Add new introduced and description resource properties to many resource
Not all of them, but a good chunk. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/ifconfig.rb')
-rw-r--r--lib/chef/resource/ifconfig.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/ifconfig.rb b/lib/chef/resource/ifconfig.rb
index e9ef47d95b..4187c949c4 100644
--- a/lib/chef/resource/ifconfig.rb
+++ b/lib/chef/resource/ifconfig.rb
@@ -21,8 +21,6 @@ require "chef/resource"
class Chef
class Resource
- # use the ifconfig resource to manage interfaces on *nix systems
- #
# @example set a static ip on eth1
# ifconfig '33.33.33.80' do
# device 'eth1'
@@ -30,6 +28,8 @@ class Chef
class Ifconfig < Chef::Resource
resource_name :ifconfig
+ description "Use the ifconfig resource to manage interfaces on *nix systems."
+
state_attrs :inet_addr, :mask
default_action :add