voxpupuli / puppet-windowsfeature

Library that uses ServerAdministration api that comes with Windows Server 2008 and Windows Server 2012 to add / remove windows features
https://forge.puppet.com/puppet/windowsfeature
MIT License
30 stars 49 forks source link

Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type windowsfeature at #6

Closed lmayorga1980 closed 10 years ago

lmayorga1980 commented 10 years ago

After installing the module on a standalone windows 20012 R2 machine.

puppet module install opentable-windows_feature

It seems that it is not recognizable inside a different class name.

  windowsfeature { 'NetFx3': }

  exec { 'powercli-install' :
    command   => 'C:\installers\VMware-PowerCLI-5.5.0-1295336.exe /s /v/qn',
    logoutput => true,
    require   => 'NetFx3'
  }

I thought it was my modulepath but it seems to point to the default puppet module path.

Windows PowerShell
Copyright (C) 2013 Microsoft Corporation. All rights reserved.

PS C:\Users\vagrant> puppet config print modulepath
C:/ProgramData/PuppetLabs/puppet/etc/modules;C:/usr/share/puppet/modules
PS C:\Users\vagrant> puppet module list
C:/ProgramData/PuppetLabs/puppet/etc/modules
├── opentable-windows_feature (v0.0.1)
└── puppetlabs-stdlib (v4.1.0)
PS C:\Users\vagrant>
lmayorga1980 commented 10 years ago

My bad here. require => 'NetFx3' is not a dependency at all. Sunday sunday.