Add option to manage redis or not

This commit is contained in:
Antonio J. Delgado 2024-11-12 10:48:28 +02:00
parent 8e63c2d852
commit 1bb9122721

View file

@ -122,6 +122,7 @@ class mastodon (
String $github_token = '',
Integer $media_retention_days = 7,
Integer $cards_retention_days = 180,
Boolean $manage_redis = true,
) {
case $ensure {
default: {
@ -192,7 +193,9 @@ class mastodon (
}
class { 'postgresql::server':
}
include redis
if ($manage_redis) {
include redis
}
exec { 'enable_corepack':
command => '/usr/bin/corepack enable',
creates => '/usr/bin/yarn',