Nginx Cookbook v 2.0.0:找不到Cookbook http_gzip_static_module

我使用berkshelfpipe理食谱,厨师11.6.2和nginx食谱2.0.0

我的设置从源代码编译nginx:

set[:nginx][:source][:modules] = ["http_gzip_static_module", "http_ssl_module"] 

configuration给我的错误:

 Cookbook http_gzip_static_module not found. If you're loading http_gzip_static_module from another cookbook, make sure you configure the dependency in your metadata 

这是从nginx食谱的错误,你如何解决它? 一切正常,与Nginx的食谱V1.7.0

非常感谢。

nginx食谱版本增加到2.0.0,强调突破变化。 特别是现在你应该用nginx :: prefix指定所有模块,根本不使用extra_modules 。 所以,现在应该是这样的:

 "default_attributes": { "nginx": { "source": { "modules": [ "nginx::http_gzip_static_module", "nginx::http_ssl_module", "nginx::http_realip_module", "nginx::http_stub_status_module", "nginx::upload_progress_module"] } } } 

请看这张票和相关变更集的细节。