]> git.openstreetmap.org Git - chef.git/commitdiff
Use ruby 3.1 on Debian
authorTom Hughes <tom@compton.nu>
Tue, 20 Jun 2023 17:46:56 +0000 (17:46 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 20 Jun 2023 18:04:46 +0000 (19:04 +0100)
cookbooks/ruby/attributes/default.rb

index 4ed2a3bb70d58b0f1e8c1b252b9d6597e1e822da..eefaf22470bfc4397761f340ebc9c6eed1eeb047 100644 (file)
@@ -1,4 +1,6 @@
-default[:ruby][:version] = if node[:lsb][:release].to_f < 22.04
+default[:ruby][:version] = if platform?("debian")
+                             "3.1"
+                           elsif node[:lsb][:release].to_f < 22.04
                              "2.7"
                            else
                              "3.0"