Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
puppet_agent 1.2.0
-
None
-
-
Modules
-
1
-
Modules 2016-11-30
Description
The chocolatey configuration tools (chocolateysource, chocolateyconfig, and chocolateyfeature) depend on the ChocolateyInstall environment variable to be set to find the chocolatey config directory, but the install class does not successfully set the environment. Rebooted the server and chocolateysource resource still fails with error:
Error: Failed to apply catalog: Validation of Chocolateysource[nexus] failed: Chocolatey version must be '0.9.9.0' to manage configuration values with Puppet. Detected '' as your version. Please upgrade Chocolatey to use this resource. at /opt/puppet-code/environments/rick_scratch_choco/site/profiles/manifests/chocolatey.pp:23
Workaround by setting the registry key 'HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\ChocolateyInstall' from a registry_value resource in the manifest before calling chocolateysource.
Attachments
Issue Links
- relates to
-
MODULES-4138 PowerShell module 2.x does not respect environment parameter - doesn't receive environment variables passed through
-
- Resolved
-
-
MODULES-4149 When Chocolatey is not installed, configuration resources kill puppet run
-
- Resolved
-
- links to