Deployment Nginx cookbook v 2.0.0:未找到cookbook http_gzip_静态_模块
我正在使用Berkshellf管理cookbooks、chef 11.6.2和nginx cookbook V2.0.0 从源代码编译nginx的我的设置:Deployment Nginx cookbook v 2.0.0:未找到cookbook http_gzip_静态_模块,deployment,nginx,chef-infra,cookbook,berkshelf,Deployment,Nginx,Chef Infra,Cookbook,Berkshelf,我正在使用Berkshellf管理cookbooks、chef 11.6.2和nginx cookbook V2.0.0 从源代码编译nginx的我的设置: set[:nginx][:source][:modules] = ["http_gzip_static_module", "http_ssl_module"] 设置给了我一个错误: Cookbook http_gzip_static_module not found. If you're loading http_gzip_static_
set[:nginx][:source][:modules] = ["http_gzip_static_module", "http_ssl_module"]
设置给了我一个错误:
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 cookbook中的错误吗?您如何解决它?使用nginx cookbook v 1.7.0,一切都很好
非常感谢。nginx cookbook版本增加到2.0.0,以强调突破性的变化。特别是现在,您应该使用nginx::前缀指定所有模块,并且根本不使用extra_模块。所以,现在应该是这样的:
"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"]
}
}
}
有关详细信息,请查看此链接和相关链接。嗨,迈克,非常感谢你的回答,我会尝试一下,很快就回来。