From e4c0fe981de3452953664d8698c777db3df5dc6d Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 27 Nov 2023 19:46:04 +0200 Subject: [PATCH] fix ruby install --- manifests/init.pp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 72513b0..5d942a0 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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',