salt 安装指定的firefox版本
2017-02-28 17:53
441 查看
参考资料:https://docs.saltstack.com/en/latest/topics/windows/windows-package-manager.html#install-a-package
说明:当前minion是32位windows,minion所属group为test_server
1, 更新资源库
2, vim /srv/salt/win/repo/salt-winrepo.git/firefox_x86.sls
3, 生成msgpack序列化
4, 查看自定义版本:
5,安装:
如果已经安装了
# salt -N test_server pkg.install ‘firefox_x86’ version=33.1.1
unicomrecharge_server1.ctu.com:
———-
unicomrecharge_server2.ctu.com:
———-
6,卸载:
说明:当前minion是32位windows,minion所属group为test_server
1, 更新资源库
salt-run winrepo.update_git_repos
2, vim /srv/salt/win/repo/salt-winrepo.git/firefox_x86.sls
firefox_x86: '33.1.1': full_name: 'Mozilla Firefox 33.1.1 (x86 zh-CN)' installer: 'http://xxxxx/server/Firefox_Setup_33.1.1.exe' install_flags: '/s' uninstaller: '%ProgramFiles%\Mozilla Firefox\uninstall\helper.exe' uninstall_flags: '/S' msiexec: False locale: zh_CN reboot: False
3, 生成msgpack序列化
salt-run winrepo.genrepo
4, 查看自定义版本:
salt -N test_server pkg.available_version firefox_x86
5,安装:
'salt -N test_server pkg.install 'firefox_x86' version=33.1.1 unicomrecharge_server1.ctu.com: ---------- Mozilla Firefox 33.1.1 (x86 zh-CN): ---------- new: 33.1.1 old: Mozilla Maintenance Service: ---------- new: 33.1.1 old: unicomrecharge_server2.ctu.com: ---------- Mozilla Firefox 33.1.1 (x86 zh-CN): ---------- new: 33.1.1 old: Mozilla Maintenance Service: ---------- new: 33.1.1 old:
如果已经安装了
# salt -N test_server pkg.install ‘firefox_x86’ version=33.1.1
unicomrecharge_server1.ctu.com:
———-
unicomrecharge_server2.ctu.com:
———-
6,卸载:
salt -N test_server pkg.remove firefox_x86
相关文章推荐
- 在Ubuntu上安装指定版本的Firefox
- 0.16版本salt的安装与日常应用
- 安装指定版本docker-engine
- Ubuntu16.04上通过kubeadm安装指定版本的kubenetes
- 解决:firefox安装firebug版本不兼容
- homebrew安装指定版本的软件
- 安装指定版本的Rails
- windows+Linux【Composer安装指定版本laravel】
- rails安装、卸载、和使用 指定版本
- Linux下yum安装MySQL yum安装MySQL指定版本
- conda 安装指定版本的指定包
- 卸载并安装指定版本Angular CLI
- Cloudera Manager安装之利用parcels方式(在线或离线)安装单节点集群(包含最新稳定版本或指定版本的安装)(添加服务)(Ubuntu14.04)(四)
- yum 指定版本安装
- Windows下安装tensorflow GPU版本报错:OSError: [WinError 126] 找不到指定的模块/Could not find 'cudart64_90.dll'.
- Orge配置Debug - 在Mac上利用Homebrew安装指定版本的Cmake
- Ubuntu安装其他版本的gcc,并指定gcc版本
- 安装指定版本Selenium命令
- 使用devstack安装OpenStack时如何指定版本
- 多版本Python共存时pip给指定版本的python安装package的方法