From 690d5214ad85f072f60a7122041d52f391c3579b Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 27 Nov 2023 19:55:38 +0200 Subject: [PATCH] add create --- manifests/init.pp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 5d942a0..6d2f94b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -156,22 +156,22 @@ class mastodon ( group => 'mastodon', require => Vcsrepo['rbenv'], } - exec { 'update_ruby': - command => "${mastodon_home}/.rbenv/bin/rbenv install 3.2.2", + exec { 'install_ruby': + command => "${mastodon_home}/.rbenv/libexec/rbenv install 3.2.2", environment => [ 'RUBY_CONFIGURE_OPTS=--with-jemalloc', ], user => 'mastodon', cwd => "${mastodon_home}/.rbenv/", - # creates => '', + creates => "${mastodon_home}/.rbenv/versions/3.2.2/bin/ruby", require => Vcsrepo['ruby_build'], } # exec { 'set_global_ruby_version': - # command => "${mastodon_home}/.rbenv/bin/rbenv global 3.2.2", + # command => "${mastodon_home}/.rbenv/libexec/rbenv global 3.2.2", # user => 'mastodon', # cwd => "${mastodon_home}/.rbenv/", # # creates => '', - # require => Vcsrepo['ruby_build'], + # require => Exec['install_ruby'], # } # exec { 'install_bundler': # command => 'gem install bundler --no-document',