Winrepo MSI problems
Hi, it seems like Salt 0.17.4 has som problems installing packages on Windows Server 2012 R2 with MSI.
I performed the following steps: salt-run winrepo.update_git_repos salt-run winrepo.genrepo salt '' pkg.refresh_db salt '' pkg.install 7zip here the minion responses nothing. On the minion i saw that the 7zip installer was downloaded, but 7zip was not installed. I have to restart the minion service on the Windows Server to get him work again.
I tried some more packages and it seems that all packages using MSI have the same problem. The packages not using MSI work fine.
When i'm trying to do an unattended install of the packages on the Windows Server directly via the cmd and the flags of the sls files it worked...
i looked in the log file and it seemes that salt put a None at the end of the install command
2014-01-20 13:00:01,058 [salt.loaded.int.module.cmdmod][INFO ] Executing command 'msiexec /i "c:\salt\var\cache\salt\minion\extrn_files\base\hivelocity.dl.sourceforge.net\project\sevenzip\7-Zip\9.20\7z920-x64.msi" /q None' in directory 'C:\Windows\system32\config\systemprofile'
With kind regards, todesregen
i saw the bug is already known. sorry
hi todesregen have you some patch or I can make a downgrade to solve the bug? if i can help to solve this bug please give me instructions, i'm testing with windows 8.1
Hi,
in version 0.17.5 this bug is fixed. the problem is, there is no windows installer jet for this version. but i can give you further instructions how to fix it tomorrow :)
Download the 0.17 branch of salt, open the file /salt/modules/win_pkg.py.
you have to change the line
install_flags = '{0} {1}'.format(pkginfo[version_num]['install_flags'], options and options.get('extra_install_flags'))
to
install_flags = '{0} {1}'.format(pkginfo[version_num]['install_flags'], options and options.get('extra_install_flags') or "")
in the salt/modules/win_pkg.py file, compile it and replace it with the current one in C:\salt\salt-0.17.4_\salt-0.17.4_\salt\modules.
thanks to mach
but there should be a new windows installer soon. https://groups.google.com/forum/#!topic/salt-users/M9Y07uILo1A
I advise to use the new installer as soon as it gets released, because i don't know whether the win_pkg.py file from the 0.17 branche is up to date :)