Type: New Feature
Affects Version/s: None
Fix Version/s: None
Zendesk Ticket IDs:39622
Zendesk Ticket Count:1
QA Risk Assessment:Needs Assessment
Module Version: Version 5.0.2 **
Puppet Version: 2019.5
OS Name/Version: Server 2016
Describe your issue in as much detail as possible...
What's strange about this is the chocolatey module v5.0.2 should set a default via the facter fact
which it appears to be failing to do on the first run?
I worked around this in the console by adding a configuration option in data to see chocolatey class parameter choco_install_location set to "C:\\ProgramData
It then ran ok on the first run. This dev setup is 2019.5
From Support :
Tested this the module on both 2019.2 and 2019.5 and I am unable to reproduce the issue with choco_install_location on Windows Server 2016.
By configuring this in the console you are overwriting anywhere other place this parameter may be declared which would explain why it started working. You can look under /etc/puppetlabs/code/environments/wineng_production/modules/ to see if you have choco_install_location => '' defined anywhere.
I am not seeing any issues with the module in my environment.
I've done it as a workaround. So we never declare this we take the module default which comes from the fact, it would seem a better defensive coding option to make sure it got the default value rather that presuming the fact would always return?