cloud - Why does this Salt run fail with "Unable to determine Chocolatey version"? -
trying cloud orchestration using salt. goal install packages on windows using chocolatey via salt.
- success: chocolatey installed on windows.
- failure: successive packages not installed on windows using salt's chocolatey module. when u locally.
two windows 2012 instances on aws on installed chocolatey.
$ sudo salt 'windows\*' test.ping windows2-minion: true windows-minion: true
both got installed chocoloatey 0.9.9.11 version. next, trying install packages on these machines/minions master firing command (or other package name):
$ sudo salt 'windows*' chocolatey.install jdk7
but got error:
$ sudo salt 'windows*' chocolatey.install jdk7 windows2-minion: error: unable determine chocolatey version windows-minion: error: unable determine chocolatey version
i using salt 2015.8.1 (latest version). master on rhel 7. machines on aws.
just had same issue, able fix editing chocolatey.py module.
change lane 105 in c:\salt\bin\lib\site-packages\salt\modules\chocolatey.py to:
cmd = [_find_chocolatey(__context__, __salt__)]
tokenfo supplied answer here on salt's github: https://github.com/saltstack/salt/issues/28307
the bug has been fixed can see here: https://github.com/saltstack/salt/blob/develop/salt/modules/chocolatey.py
presumably, fixed in future versions of salt installer, edit line.
Comments
Post a Comment