add nodejs version
This commit is contained in:
parent
2f41ce5816
commit
adf86901a6
1 changed files with 5 additions and 1 deletions
|
@ -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':
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue