Custom Resources
Custom Resources
Warning
This approach to building custom resources was introduced in chef-client, version 12.5. It is the recommended approach for all custom resources starting with that version of the chef-client. Refer to the notes about custom resources if you’re curious about other approaches that use the older styles. If you are using an older version of the chef-client, please use the version picker (in the top left of the navigation) to select your version, and then choose the same topic from the navigation tree (“Extend Chef > Custom Resources”). See also https://github.com/chef-cookbooks/compat_resource for using this features with previous versions of the chef-client.
A custom resource: