add environment and group

This commit is contained in:
Antonio J. Delgado 2023-11-28 17:37:54 +02:00
parent db03be0024
commit 2d10ca8a52

View file

@ -197,6 +197,10 @@ class mastodon (
exec { 'install_mastodon': exec { 'install_mastodon':
command => '/usr/local/bin/install_mastodon.sh', command => '/usr/local/bin/install_mastodon.sh',
user => $mastodon_user, user => $mastodon_user,
group => $mastodon_group,
environment => [
"HOME=${mastodon_home}",
],
creates => "${mastodon_home}/./.mastodon_install", creates => "${mastodon_home}/./.mastodon_install",
path => "${mastodon_home}/.rbenv/shims:${mastodon_home}/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", path => "${mastodon_home}/.rbenv/shims:${mastodon_home}/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
timeout => 0, timeout => 0,