我想使用厨师12在Amazon Linux中安装特定版本的PHP软件包,这是我使用的代码:
node.override['apache']['version'] = '2.4'
case node.default[:platform]
when 'rhel', 'fedora', 'suse', 'centos'
node.override['php']['packages'] = ['php71w']
# add the EPEL repo
yum_repository 'epel' do
description 'Extra Packages for Enterprise Linux'
mirrorlist 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-7&arch=x86_64'
gpgkey 'http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7'
action :create
end
when 'amazon'
node.override['php']['packages'] = ['php71]
include_recipe "php::package"
include_recipe "php::ini"
end
include_recipe "build-essential"
它安装了此版本“ PHP 7.1.25”,但我想要此版本“ PHP 7.1.15”,我该怎么办?