fix ruby install

This commit is contained in:
Antonio J. Delgado 2023-11-27 19:46:04 +02:00
parent 198228f3ba
commit e4c0fe981d

View file

@ -157,15 +157,22 @@ class mastodon (
require => Vcsrepo['rbenv'],
}
exec { 'update_ruby':
command => "${mastodon_home}/.rbenv/bin/rbenv global 3.2.2",
command => "${mastodon_home}/.rbenv/bin/rbenv install 3.2.2",
environment => [
'RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 3.2.2',
'RUBY_CONFIGURE_OPTS=--with-jemalloc',
],
user => 'mastodon',
cwd => "${mastodon_home}/.rbenv/",
# creates => '',
require => Vcsrepo['ruby_build'],
}
# exec { 'set_global_ruby_version':
# command => "${mastodon_home}/.rbenv/bin/rbenv global 3.2.2",
# user => 'mastodon',
# cwd => "${mastodon_home}/.rbenv/",
# # creates => '',
# require => Vcsrepo['ruby_build'],
# }
# exec { 'install_bundler':
# command => 'gem install bundler --no-document',
# user => 'mastodon',