I have custom AWS provider for Chef. It's working with Chef Client 12, but can't working with Client 16+.
I added "provides = :amazon" to code, but it didn't help.
class Amazon < Chef::Resource
provides = :amazon def initialize(name, run_context=nil) super(name, run_context) @resource_name = :amazon @provider = Chef::Provider::Amazon end
require 'chef/provider' require 'logger' class Chef class Provider class Amazon < Chef::Provider def initialize(new_resource, run_context) super require 'aws-sdk-core' logger = nil log_level = :info trace = false if Chef::Config[:log_level] == :debug logger = Logger.new(Chef::Config[:log_location]) log_level = :debug trace = true end
Any idea ?