user2020470
user2020470

Reputation: 21

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:

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

Please let me know how to fix this.

Upvotes: 0

Views: 1157

Answers (1)

Holger Just
Holger Just

Reputation: 55803

This resource is defined in the windows cookbook, not in Chef core itself.

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).

Upvotes: 3

Related Questions