On 11/14/2014 06:42 PM, Josh Cooper wrote:
>     This one doesn't work. The puppet agent runs without error, but the
>     two packages are not installed! So I'm trying to find out what
>     exactly puppet is doing, for example the output of the choco command
>     that it's supposed to execute. I'm having a really hard time though
>     finding any documentation or debug logging. How can I see what
>     puppet is doing when it's running? I have attached the output of
>     puppet --debug --onetime
> 
> 
> Are you sure that class is included in the catalog, it doesn't appear
> puppet ever tries to install those packages.
> 
> Also on windows the default package provider is `windows`, so to use
> chocolatey, you need to specify `provider => chocolatey` in your package
> resource or create a resource default.
> 
> Also, you'll want to make sure that your package resource requires the
> 'install-chocolatey' exec, so that those steps are performed in the
> correct order.

This.

Also, to do plain old "printf" style debugging, add notify { } resources
to your manifest.

HTH,
Felix

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54664AB5.3040508%40alumni.tu-berlin.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to