ayohrling / local_security_policy

Apache License 2.0
6 stars 28 forks source link

Error: Could not find a suitable provider for local_security_policy #30

Open at0rvk opened 6 years ago

at0rvk commented 6 years ago

I have a node definition to configure a local security policy like this:

local_security_policy { 'Minimum password age':
  ensure        => present,
  policy_value  => '1',
}

But when I run puppet agent -t --debug I get the following error:

...
Debug: Puppet::Type::Local_security_policy::ProviderPolicy: file wmic does not exist
Debug: Puppet::Type::Local_security_policy::ProviderPolicy: file wmic does not exist
Debug: Node[tst-server]: Resource is being skipped, unscheduling all events
Debug: Class[Main]: Resource is being skipped, unscheduling all events
Debug: Stage[main]: Resource is being skipped, unscheduling all events
Info: Stage[main]: Unscheduling all events on Stage[main]
Error: Could not find a suitable provider for local_security_policy

Any idea on how to fix/further diagnose why my configuration isn't working?

On the node the puppet resource local_security_policy commands work fine. The node is running Windows Server 2008 R2 with Puppet 4.5.0.