如何使用chef solo安装特定版本的nginx
我有以下问题,但它不起作用: package 'nginx' do action :install version "1.1.19" end 请提供帮助。尝试使用配方nginx::source。下面是角色配置的示例,但您可以在任何地方使用它如何使用chef solo安装特定版本的nginx,nginx,apt-get,chef-solo,Nginx,Apt Get,Chef Solo,我有以下问题,但它不起作用: package 'nginx' do action :install version "1.1.19" end 请提供帮助。尝试使用配方nginx::source。下面是角色配置的示例,但您可以在任何地方使用它 { "name": "production", "chef_type": "role", "json_class": "Chef::Role", "description": "The base role for systems
{
"name": "production",
"chef_type": "role",
"json_class": "Chef::Role",
"description": "The base role for systems that serve HTTP traffic",
"override_attributes": {
"nginx": {
"version": "1.7.3",
"default_site_enabled": true,
"source": {
"modules": ["nginx::http_gzip_static_module"],
"version": "1.7.3"
}
}
},
"run_list": [
"recipe[nginx::source]",
"recipe[my_app]"
]
}