From 1bb912272136764994b5ae0cf72c5a5588db0519 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 12 Nov 2024 10:48:28 +0200 Subject: [PATCH] Add option to manage redis or not --- manifests/init.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index be8520f..0031253 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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',