diff --git a/manifests/init.pp b/manifests/init.pp index d9ffa22..6c46d31 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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': }