]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/php/attributes/default.rb
Revert "workaround temporary statuscake IP list failure"
[chef.git] / cookbooks / php / attributes / default.rb
index f7a6208104e0bb1253008918129bdfd77cbd86b7..5dd05a52b3c0efd92be200dd7eac0be7ccda03c7 100644 (file)
@@ -1,2 +1,8 @@
-default[:php][:version] = "7.4"
+default[:php][:version] = if platform?("debian")
+                            "8.2"
+                          elsif node[:lsb][:release].to_f < 22.04
+                            "7.4"
+                          else
+                            "8.1"
+                          end
 default[:php][:fpm][:options] = {}
 default[:php][:fpm][:options] = {}