天天看点

第2章 创建Windows Software Repository 第2章 创建Windows Software Repository

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

继续阅读