]> git.openstreetmap.org Git - chef.git/blob - cookbooks/php/attributes/default.rb
foundation: use default mediawiki version
[chef.git] / cookbooks / php / attributes / default.rb
1 default[:php][:version] = if platform?("debian")
2                             case node[:platform_version].to_i
3                             when 13
4                               "8.4"  # PHP version for Debian 13 Trixie
5                             end
6                           elsif platform?("ubuntu")
7                             case node[:lsb][:release].to_f
8                             when 22.04
9                               "8.1"  # PHP version for Ubuntu 22.04
10                             when 20.04
11                               "7.4"  # PHP version for Ubuntu 20.04
12                             end
13                           end
14
15 default[:php][:fpm][:options] = {}