]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/ruby/attributes/default.rb
Increase timeout for postgres exporter
[chef.git] / cookbooks / ruby / attributes / default.rb
index 39e975e0660cf3f95ef6c72585bcb8ced9c73886..4ed2a3bb70d58b0f1e8c1b252b9d6597e1e822da 100644 (file)
@@ -1,6 +1,7 @@
-default[:ruby][:version] = if node[:lsb][:release].to_f < 20.04
-                             "2.5"
-                           else
+default[:ruby][:version] = if node[:lsb][:release].to_f < 22.04
                              "2.7"
+                           else
+                             "3.0"
                            end
+default[:ruby][:gem] = "/usr/bin/gem#{node[:ruby][:version]}"
 default[:ruby][:bundle] = "/usr/bin/bundle#{node[:ruby][:version]}"