I want to install a specific version of package PHP in Amazon Linux with chef 12, this is my code that i used:
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"
It installed this verison "PHP 7.1.25 " but i want this version "PHP 7.1.15 " what should i do ?