]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/ruby/recipes/default.rb
Revert "Disable collection of bgwriter statistics for postgres 17"
[chef.git] / cookbooks / ruby / recipes / default.rb
index 3ec7b03295596c1d54a4c9ce899c3ec399d4078b..7301e372c351b88bcf1d56e6b189c10cd680d421 100644 (file)
 
 ruby_version = node[:ruby][:version]
 
-package %W[
-  ruby
-  ruby#{ruby_version}
-  ruby
-  ruby#{ruby_version}-dev
-]
-
-gem_package "bundler#{ruby_version}-1" do
-  package_name "bundler"
-  version "~> 1.17.3"
-  gem_binary "gem#{ruby_version}"
-  options "--format-executable"
-end
+if node[:ruby][:fullstaq]
+
+  include_recipe "apt::fullstaq-ruby"
+
+  package %W[
+    fullstaq-ruby-common
+    fullstaq-ruby-#{ruby_version}-jemalloc
+  ]
+
+  %w[bundle bundler erb gem irb racc rake rbs rdbg rdoc ri ruby syntax_suggest typeproc].each do |command|
+    link "/usr/local/bin/#{command}" do
+      to "/usr/lib/fullstaq-ruby/versions/#{ruby_version}-jemalloc/bin/#{command}"
+      owner "root"
+      group "root"
+    end
+  end
+
+else
+
+  package %W[
+    ruby
+    ruby-dev
+    ruby-bundler
+  ]
 
-gem_package "bundler#{ruby_version}-2" do
-  package_name "bundler"
-  version "~> 2.3.16"
-  gem_binary "gem#{ruby_version}"
-  options "--format-executable"
 end