Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-3781

Error: Could not find a suitable provider for dsc_windowsfeature

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • puppet_agent 1.1.0
    • None
    • dsc

    Description

      Hi,

      I'm trying to use the dsc module on a win2012r2 server but I can't seem to get it to work with the following setup:

      • Win2012R2
      • Powershell V5 (5.0.10586.117)
      • Masterless setup using puppet apply
      • Puppet agent 4.6.0
      • PowerShell and Reboot module present in modules folder

      Following the example on in the read me any resource I try and use results in and error:
      Error: Could not find a suitable provider for dsc_windowsfeature

      Here's the debug trace:

      Debug: Facter: custom fact "domain" was not found.
      Debug: hiera(): Hiera YAML backend starting
      Debug: hiera(): Looking up classes in YAML backend
      Debug: hiera(): Looking for data source node/windows2012
      Debug: hiera(): Cannot find datafile hieradata/local/node/windows2012.yaml, skipping
      Debug: hiera(): Looking for data source local
      Debug: hiera(): Cannot find datafile hieradata/local/local.yaml, skipping
      Debug: hiera(): Looking for data source windows
      Debug: hiera(): Found classes in windows
      Debug: hiera(): Looking for data source common
      Debug: importing 'C:/puppet-dev/environments/local/modules/profile/manifests/windows/base.pp' in environment l
      Debug: Automatically imported profile::windows::base from profile/windows/base into local
      Debug: importing 'C:/puppet-dev/environments/local/modules/profile/manifests/windows/web/base.pp' in environme
      Debug: Automatically imported profile::windows::web::base from profile/windows/web/base into local
      Debug: Facter: custom fact "uses_win32console" was not found.
      Debug: Facter: custom fact "powershell_version" was not found.
      Notice: Compiled catalog for windows2012 in environment local in 0.34 seconds
      Debug: Puppet::Type::Dsc_windowsfeature::ProviderPowershell: false value when expecting true
      Debug: Puppet::Type::Dsc_windowsfeature::ProviderPowershell: false value when expecting true
      Debug: Creating default schedules
      Debug: Loaded state in 0.00 seconds
      Debug: Loaded state in 0.00 seconds
      Debug: Loaded transaction store file in 0.00 seconds
      Info: Applying configuration version '1472054640'
      Debug: Reloading posix reboot provider
      Debug: Puppet::Type::Dsc_windowsfeature::ProviderPowershell: false value when expecting true
      Debug: Puppet::Type::Dsc_windowsfeature::ProviderPowershell: false value when expecting true
      Debug: Class[Profile::Windows::Web::Base]: Resource is being skipped, unscheduling all events
      Debug: Stage[main]: Resource is being skipped, unscheduling all events
      Error: Could not find a suitable provider for dsc_windowsfeature
      Debug: Finishing transaction 49330620
      Debug: Storing state
      Debug: Stored state in 0.02 seconds
      

      Thanks

      Dan

      Attachments

        Activity

          People

            rob Rob Reynolds
            dangibbons Dan Gibbons
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support