add nodejs version

This commit is contained in:
Antonio J. Delgado 2024-02-02 07:24:20 +02:00
parent 2f41ce5816
commit adf86901a6

View file

@ -57,6 +57,9 @@
# [*cert_admin_mail*]
# Email to provide to Let's Encrypt in exchange for SSL certificates
#
# [*nodejs_version*]
# String with nodejs version to install. Default 16.x
#
class mastodon (
String $ensure = 'present',
String $hostname = 'mastodon.example.org',
@ -74,6 +77,7 @@ class mastodon (
String $otp_secret = '0tpS3cr3t',
String $vapid_private_key = 'S3cr3tK3i',
String $vapid_public_key = 'S3cr3tK3i',
String $nodejs_version = '16.x',
Hash $config = {
'LOCAL_DOMAIN' => 'example.com',
'REDIS_HOST' => '127.0.0.1',
@ -159,7 +163,7 @@ class mastodon (
}
}
class { 'nodejs':
repo_url_suffix => '16.x',
repo_url_suffix => $nodejs_version,
}
class { 'postgresql::server':
}