1,建立windows 7zip software repository
a)Download7zip file
b)建立7zip目錄
i.Mkdir –p /srv/salt/win/repo/7zip
c)建立配置7zip檔案
i.Vim /srv/salt/win/repo/7zip/init.sls
d)生成換成檔案winrepo.genrepo
e)分發緩存檔案到所有win minion端
i.Salt \win* pkg.refresh_db
f)檢視安裝版本資訊
g)安裝7zip
i)注:目前14版本隻支援MSI格式,EXE 檔案格式失敗,必須把EXE轉換成MSI ,有的工具轉換可以成功,但是會涉及的版本的相容性,無法實作靜默安裝!
svn:
1.7.2.22:
installer: salt://win/repo/svn/svn-1.7.2.22.msi
full_name: svn 1.7.2.22
reboot: False
install_flags: ' /q '
msiexec: True
uninstaller: salt://win/repo/svn/svn-1.7.2.22.msi
uninstall_flags: ' /qn'
filezilla:
3.6.0.2:
installer: http://downloads.sourceforge.net/project/filezilla/FileZilla_Client/3.6.0.2/FileZilla_3.6.0.2_win32-setup.exe?r=&ts=1356711987&use_mirror=superb-dca3
install_flags: ' /S'
full_name: FileZilla Client 3.6.0.2
uninstaller: '%ProgramFiles(x86)%\FileZilla FTP Client\uninstall.exe'
uninstall_flags: ' /S'
<a href="http://docs.saltstack.com/ref/windows-package-manager.html">http://docs.saltstack.com/ref/windows-package-manager.html</a>
本文轉自 swq499809608 51CTO部落格,原文連結:http://blog.51cto.com/swq499809608/1184480