update config variable

This commit is contained in:
Antonio J. Delgado 2023-11-28 22:48:09 +02:00
parent 2be0972f20
commit 9cd409ced7

View file

@ -71,7 +71,7 @@ class mastodon (
String $otp_secret = '0tpS3cr3t', String $otp_secret = '0tpS3cr3t',
String $vapid_private_key = 'S3cr3tK3i', String $vapid_private_key = 'S3cr3tK3i',
String $vapid_public_key = 'S3cr3tK3i', String $vapid_public_key = 'S3cr3tK3i',
Hash $mastodon_config = { Hash $config = {
'LOCAL_DOMAIN' => 'example.com', 'LOCAL_DOMAIN' => 'example.com',
'REDIS_HOST' => '127.0.0.1', 'REDIS_HOST' => '127.0.0.1',
'REDIS_PORT' => 6379, 'REDIS_PORT' => 6379,
@ -284,7 +284,7 @@ class mastodon (
'SECRET_KEY_BASE' => $secret_key_base, 'SECRET_KEY_BASE' => $secret_key_base,
'OTP_SECRET' => $otp_secret, 'OTP_SECRET' => $otp_secret,
} }
$real_config = $mastodon_config + $built_config $real_config = $config + $built_config
file { "${mastodon_home}/live/.env.production": file { "${mastodon_home}/live/.env.production":
ensure => $ensure, ensure => $ensure,
content => template('mastodon/env.production.erb'), content => template('mastodon/env.production.erb'),