]> git.openstreetmap.org Git - chef.git/blob - cookbooks/php/attributes/default.rb
spamassassin: Use correct daemon name on Ubuntu 24.04
[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                             when 12
6                               "8.2"  # PHP version for Debian 12 Bookworm
7                             end
8                           elsif platform?("ubuntu")
9                             case node[:lsb][:release].to_f
10                             when 24.04
11                               "8.3"  # PHP version for Ubuntu 24.04
12                             when 22.04
13                               "8.1"  # PHP version for Ubuntu 22.04
14                             when 20.04
15                               "7.4"  # PHP version for Ubuntu 20.04
16                             end
17                           end
18
19 default[:php][:fpm][:options] = {}