Sometimes a Puppet run fails with the following error:
Failed to apply catalog: Validation of Chocolateysource[chocolatey] failed: Chocolatey version must be '0.9.9.0' to manage configuration values with Puppet. Detected '0' as your version. Please upgrade Chocolatey to use this resource.
The next Puppet run the error is gone. Chocolatey version 0.10.3 is installed.
choco.exe -v should always return the version.
Eventviewer shows this at the time of failed puppet run:
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ComponentModel.Win32Exception