我使用的是厨师下载war文件到从nexus.The配方文件夹获得Nexus下载神器如下厨师 - 使用remote_file资源
remote_file '/home/Test/AAA.war' do
source 'https://IP.com:8082/ URL Of the Repo/AAA.war'
owner 'root'
group 'root'
mode '0755'
action :create
end
但是如果我运行这个配方,我得到未经授权的访问错误。
是否需要为nexus登录提供用户名和密码?
我应该写一个批处理脚本从nexus而不是配方下载吗?
Riotgames [神器](https://github.com/RiotGamesCookbooks/artifact-cookbook)cookbook可以作为灵感的帮助(根据我所知,不再维护)。特别是从nexus部分下载[这里](https://github.com/RiotGamesCookbooks/artifact-cookbook/blob/master/libraries/chef_artifact_nexus.rb)以及他们的nexus CLI gem [here](https:// github。 com/RiotGamesMinions/nexus_cli) – Tensibai