]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/php/attributes/default.rb
Use PHP 8.2 on Debian
[chef.git] / cookbooks / php / attributes / default.rb
index 0ca636813b10d67d962662ce0b06f1b688882683..c96f61188ae62070756fbc0ad0b72e0b1d90dba4 100644 (file)
@@ -1,5 +1,8 @@
-default[:php][:version] = if node[:lsb][:release].to_f < 20.04
-                            "7.2"
-                          else
+default[:php][:version] = if platform?("debian")
+                            "8.2"
+                          elsif qnode[:lsb][:release].to_f < 22.04
                             "7.4"
+                          else
+                            "8.1"
                           end
+default[:php][:fpm][:options] = {}