If any users of dsc/pwsh modules. Trying to unders...
# puppet
i
If any users of dsc/pwsh modules. Trying to understand why I can't mix multiple different dsc resources in the same compilation.
Copy code
dsc_firewall { ... }
dsc_remotedesktopadmin { ... }
dsc_networkprofile { ... }
dsc_certificateimport { ... }
Get server error if all the above are used - which resource mentioned in the error differs on every agent run.
Copy code
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Could not autoload puppet/type/dsc_certificateimport: Could not autoload puppet/provider/dsc_certificateimport/dsc_certificateimport: no such file to load -- puppet/provider/dsc_base_provider/dsc_base_provider
Comment out any resource, then the catalogue compiles successfully. All resource providers
require 'puppet/provider/dsc_base_provider/dsc_base_provider'
, which is present in the environment via pwshlib module. 🤷