Open MichaelStankiewicz opened 7 years ago
FYI - I believe I found the specific item that was change in v13 that is breaking the listener LWRP. Per the following release notes link: https://discourse.chef.io/t/chef-client-13-released/10735
DSL-based custom resources and providers no longer get module constants
Up until now, creating a mycook/resources/thing.rb would create a Chef::Resources::MycookThing name to access the resource class object. This const is no longer created for resources and providers. You can access resource classes through the resolver API like:
Chef::Resource.resource_for_node(:mycook_thing, node) Accessing a provider class is a bit more complex, as you need a resource against which to run a resolution like so:
Chef::ProviderResolver.new(node, find_resource!("mycook_thing[name]"), :nothing).resolve
I upgraded chef-client to version 13.3, and now when I run my recipe to converge my winrm listeners, I'm receiving the following. It's worth noting that this is working fine on my down-level chef clients (v12.19.36), so this appears to be an issue with something that may have changed in the latest version of the chef client (or something that has changed between these versions).