add create

This commit is contained in:
Antonio J. Delgado 2023-11-27 19:55:38 +02:00
parent e4c0fe981d
commit 690d5214ad

View file

@ -156,22 +156,22 @@ class mastodon (
group => 'mastodon', group => 'mastodon',
require => Vcsrepo['rbenv'], require => Vcsrepo['rbenv'],
} }
exec { 'update_ruby': exec { 'install_ruby':
command => "${mastodon_home}/.rbenv/bin/rbenv install 3.2.2", command => "${mastodon_home}/.rbenv/libexec/rbenv install 3.2.2",
environment => [ environment => [
'RUBY_CONFIGURE_OPTS=--with-jemalloc', 'RUBY_CONFIGURE_OPTS=--with-jemalloc',
], ],
user => 'mastodon', user => 'mastodon',
cwd => "${mastodon_home}/.rbenv/", cwd => "${mastodon_home}/.rbenv/",
# creates => '', creates => "${mastodon_home}/.rbenv/versions/3.2.2/bin/ruby",
require => Vcsrepo['ruby_build'], require => Vcsrepo['ruby_build'],
} }
# exec { 'set_global_ruby_version': # 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', # user => 'mastodon',
# cwd => "${mastodon_home}/.rbenv/", # cwd => "${mastodon_home}/.rbenv/",
# # creates => '', # # creates => '',
# require => Vcsrepo['ruby_build'], # require => Exec['install_ruby'],
# } # }
# exec { 'install_bundler': # exec { 'install_bundler':
# command => 'gem install bundler --no-document', # command => 'gem install bundler --no-document',