Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am attempting to use Chocolatey ( http://chocolatey.org ) as a package provider for Puppet, but I continually get this error when running the Puppet agent on my Win 7 box.

info: Caching catalog for ldap-windows-vm.localdomain
err: Failed to apply catalog: Parameter provider failed: Invalid package provide
r 'chocolatey' at /etc/puppet/environments/beta/modules/stormaas/manifests/init.
pp:9

I've placed this module, https://github.com/rismoney/puppet-chocolatey, in my modules/ directory on my Puppet master, I have pluginsync set to true on both the master and slave - and am already using a few imported types that are working with the same setup.

Calling the package with:

  package { 'stormaas':
    ensure   => installed,
    provider => 'chocolatey',
  }

I've tried with both the provider set to 'chocolatey' and chocolatey in case it was a quotes issue, and restarted both the master and slave on every change and ran the agent multiple times to ensure it was refreshed.

All other aspects of the module that is being applied to the machine works - just not this.

Any thoughts?

share|improve this question
    
I was under the impression that the Chocolatey provider type project was unfinished. I'd definitely be interested to see if you get this working though. –  czervik Oct 17 '12 at 5:41
    
This was solved - I'll post my answer below. –  TJ Biddle Oct 17 '12 at 20:25
    
@TJBiddle - this should have a chocolatey tag on it. I don't think either of us have enough rep on server fault to add it though. –  ferventcoder Sep 4 '13 at 11:18
    
@ferventcoder - I need 300 rep to create the 'chocolatey' tag =\. –  TJ Biddle Sep 4 '13 at 15:26
    
@TJBiddle I know, that's why I said "[n]either of us" –  ferventcoder Sep 9 '13 at 19:53

1 Answer 1

up vote 2 down vote accepted

This looks to be a Puppet bug actually - I'm using dynamic environments, so my module was originally placed under /etc/puppet/environments/beta/chocolatey/ but when I moved the module over to /etc/puppet/modules then it worked.

What's interesting is custom types worked fine while in the environment - but custom providers failed to sync up.

The module works great it seems - Might be a few quirks, if I run into any I'll patch it and submit a pull request.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.