简体   繁体   English

没有名为“ Chef :: Recipe“默认””的名为“ windows_zipfile”的资源或方法

[英]No resource or method named `windows_zipfile' for `Chef::Recipe “default”'

When I try to run a simple unzip recipe on windows environment I am getting the below error: 当我尝试在Windows环境中运行一个简单的解压缩配方时,出现以下错误:

No resource or method named `windows_zipfile' for `Chef::Recipe "default"'

Please let me know how to fix this. 请让我知道如何解决此问题。

This resource is defined in the windows cookbook , not in Chef core itself. 此资源是在Windows Cookbook中定义的,而不是在Chef核心本身中定义的。

Thus, in order to use it, you have to declare the windows cookbook as a dependency of your cookbook and upload it to the Chef server (or your cookbooks directory when running with chef solo). 因此,为了使用它,您必须将Windows Cookbook声明为Cookbook的依赖项,并将其上载到Chef服务器(或与Chef Solo一起运行时的Cookbooks目录)。

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

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