I’ve got an older cookbook, ips, that provides a resource. The resource definition is in the libraries directory.
require 'chef/resource’
class Chef
class Resource
class IpsPublisher < Chef::Resource
def initialize(name, run_context = nil)
etc.
The provider definition is in the provider directory in file publisher.rb. It defines load_current_resource and a couple actions, nothing special about it.
When I use the ips_publisher resource, along with chef-client >= 12.5.1, in a recipe I get
Chef::Exceptions::ProviderNotFound
----------------------------------
Cannot find a provider for ips_publisher[Solaris default with proxy] on solaris2 version 5.11
Undocumented breaking change in 12.5.1 maybe? Is there anyway to get the publisher recognized?
Thanks,
Mark