Skip to content
This repository has been archived by the owner. It is now read-only.
Cookbook to bring some features from future Chef to earlier versions
Branch: master
Clone or download
tas50 Release 12.19.1
Signed-off-by: Tim Smith <>
Latest commit e36200f Jan 30, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update PR template for DCO Oct 20, 2016
ci/chefspec Update copyright headers Nov 25, 2016
libraries Fix autoload by applying fix from #106 Sep 26, 2016
spec add test for #87 Sep 14, 2016
tasks Update copyright headers Nov 25, 2016
.gitignore Release 12.14.1 Sep 7, 2016
.travis.yml Install nokogiri version for ruby 2.0 test case to pass Dec 29, 2016 Release 12.19.1 Jan 29, 2018 Add contributing and testing docs Oct 9, 2015 Improve documentation Sep 7, 2016
Gemfile Add tomlrb to the Gemfile Sep 17, 2016
LICENSE Use our standard license file w/o copyright Aug 31, 2016 Release 12.14.7 Sep 26, 2016
MAINTAINERS.toml Update maintainers wording and format [skip-ci] Sep 8, 2016 Add deprecation notice Jan 29, 2018
Rakefile fix yum_repo missing erb file Dec 20, 2016 Add contributing and testing docs Oct 9, 2015
chefignore Update ignore files Aug 31, 2016
metadata.rb Release 12.19.1 Jan 29, 2018
run_all.rb Script to run all tests Nov 3, 2015

compat_resource cookbook

Build Status Cookbook Version


This cookbook was written to backport Chef functionality and resources to older versions of Chef. The last backport brought functionality from Chef 12.19 to 12.1-12.18. Based on chef-client version support policy outlined RFC-092 we support the prior 6 months of chef-client releases in current community cookbooks and Chef 12.19 shipped in Feb 2017. If you need the functionality provided in this cookbook you will need to update to Chef 12.19+. As Chef 12 goes EOL in April 2018 we highly recommend you upgrade to Chef 13. See for more information on the upgrade process.

This cookbook backports functionality introduced in the latest chef-client releases to any chef-client from 12.1 onwards. This includes Custom Resource functionality, notification improvements, as well as new resources added to core chef. It allows for the usage of these new resources in cookbooks without requiring the very latest Chef client release.

Backported functionality



  • All platforms supported by Chef


  • Chef 12.1+


  • none


To use this cookbook, put depends 'compat_resource' in the metadata.rb of your cookbook. Once this is done, you can use all the new custom resource features to define resources. It Just Works.

Custom Resources?

Curious about how to use custom resources? See the Chef custom resource docs.

License & Authors

Copyright:: 2015-2016 Chef Software, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.
You can’t perform that action at this time.