puppetlabs / Puppet.Dsc

Convert DSC resources into Puppet Resource API types and providers
https://www.powershellgallery.com/packages/Puppet.Dsc
Apache License 2.0
9 stars 12 forks source link

DSC modules - Could not autoload dsc_base_provider #299

Open webalexeu opened 1 week ago

webalexeu commented 1 week ago

Describe the Bug

Hello,

We are facing an issue with the DSC modules (Using computermanagementdsc 9.2.0-0-0 as reference but same with all modules)

Could not autoload puppet/type/dsc_computer: Could not autoload puppet/provider/dsc_computer/dsc_computer: no such file to load -- puppet/provider/dsc_base_provider/dsc_base_provider

Expected Behavior

Applying configuration

Steps to Reproduce

Not sure it is easily reproducable When apply locally on one node manually is not causing any issue It seems more related when using puppetmasters and environment isolation https://www.puppet.com/docs/puppet/8/environment_isolation.html

Environment

Additional Context

We are wondering if the require (in provider part) require 'puppet/provider/dsc_base_provider/dsc_base_provider' should not be transformed to use require_relative instead

Thank you for your support

danadoherty639 commented 5 days ago

@webalexeu see my inline comments below:

Not sure it is easily reproducable When apply locally on one node manually is not causing any issue

Could you provide some more details around this issue? When you say apply locally on one node manually can you tell us exactly the command/steps you are running when you do this?

It seems more related when using puppetmasters and environment isolation https://www.puppet.com/docs/puppet/8/environment_isolation.html

Are you using Open Source or Puppet Enterprise?