我认为这里的网址“曾经可用”,但现在,由于接受许可协议所涉及的内容,它不再是:
以下是食谱页面:https://supermarket.chef.io/cookbooks/wlp/versions/0.2.2
错误:
ec2-54-67-111-140.us-west-1.compute.amazonaws.com Error executing action create on
resource 'remote_file[/var/chef/cache/wlp-developers-runtime-8.5.5.4.jar]'
ec2-54-67-111-140.us-west-1.compute.amazonaws.com
ec2-54-67-111-140.us-west-1.compute.amazonaws.com
ec2-54-67-111-140.us-west-1.compute.amazonaws.com
ec2-54-67-111-140.us-west-1.compute.amazonaws.com Net::HTTPServerException
ec2-54-67-111-140.us-west-1.compute.amazonaws.com ------------------------
ec2-54-67-111-140.us-west-1.compute.amazonaws.com 404 "Not Found"
ec2-54-67-111-140.us-west-1.compute.amazonaws.com
ec2-54-67-111-140.us-west-1.compute.amazonaws.com
我的厨师角色
{"name":"websphere",
"default_attributes" : {
"wlp" : {
"archive" : {
"accept_license" : true,
"base_url" : "https://developer.ibm.com/wasdev/downloads/liberty-profile-using-non-eclipse-environments"
}
},
"java" : {
"install_flavor" : "oracle",
"jdk_version" : "7",
"oracle" : {
"accept_oracle_download_terms" : true
}
}
},
"run_list":[
"recipe[chef-client]",
"recipe[application_wlp]",
"recipe[wlp]"
]
}
我已经检查了wlp cookbook default.rb:
的输出p "*"25
p node[:wlp][:archive][:base_url]
p "*"25 #<> URL location of the runtime archive.
default[:wlp][:archive][:runtime][:url] = "#{node[:wlp][:archive][:base_url]}/wlp-developers-runtime-8.5.5.4.jar"
p ""25 p default[:wlp][:archive][:runtime][:url]
p ""*25
ec2-54-67-111-140.us-west-1.compute.amazonaws.com
"*******"
ec2-54-67-111-140.us-west-1.compute.amazonaws.com "https://developer.ibm.com/wasdev/downloads/liberty-profile-using-non-eclipse-environments" ec2-54-67- 111-140.us-west-1.compute.amazonaws.com
"*******"
ec2-54-67-111-140.us-west-1.compute.amazonaws.com
"*******"
ec2-54-67-111-140.us-west-1.compute.amazonaws.com "https://developer.ibm.com/wasdev/downloads/liberty-profile-using-non-eclipse-environments/wlp-developers-runtime-8.5.5.4.jar" ec2-54-67-111-140.us-west-1.compute.amazonaws.com
在浏览器中访问最后一个网址确实会出现404错误。厨师怎么能下载这个罐子?
答案 0 :(得分:1)
只要源站点不再允许直接下载,您必须自己下载并将其托管在http服务器上的某个位置。
然后通过覆盖您已经拥有该网址的角色中的default[:wlp][:archive][:base][:url]
,将其用作源网址:
{"name":"websphere",
"default_attributes" : {
"wlp" : {
"archive" : {
"accept_license" : true,
"base_url" : "https://<path to your internal hosting server>"
}
},
"java" : {
"install_flavor" : "oracle",
"jdk_version" : "7",
"oracle" : {
"accept_oracle_download_terms" : true
}
}
},
"run_list":[
"recipe[chef-client]",
"recipe[application_wlp]",
"recipe[wlp]"
]
}