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',