繁体   English   中英

使用Chef no Internet在服务器上安装软件包

[英]Installing a package on a Server using Chef no internet

我想知道是否有办法在服务器上安装Management Framewok 5.0,该服务器将具有Intranet连接,但是使用Chef Cookbook无法连接到系统外的任何其他设备。

我想到的就像是将文件从本地计算机直接发送到服务器,而无需服务器从Internet下载文件。 我现在做的方式要求服务器从Microsoft网站获取它。

 # Create installs directory to house downloads directory 'c:/installs' do end # Install Windows Management Framework 5.0 remote_file "c:/installs/Windows-Management-Framework-5.0-2k12R2.msu" do source "http://go.microsoft.com/fwlink/?LinkId=717507" end # Executes the MSU execute "c:/installs/Windows-Management-Framework-5.0-2k12R2.msu /quiet" do action :nothing subscribes :run, resources(:remote_file => "c:/installs/Windows-Management-Framework-5.0-2k12R2.msu") end 

不,这不是Chef的特定功能。 我们拥有cookbook_file资源,可以与该Cookbook一起分发文件,但是像这样的安装程序使用它很快很难管理。 与以往一样,在创建空白环境时,您可能必须构建自己的镜像服务器并从中下载。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM