From 0c8cf318a77538406cf73cbb067c28ddb8e19d1c Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 28 Nov 2023 18:42:34 +0200 Subject: [PATCH] separate built config --- manifests/init.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 1807b34..3b482a5 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -239,7 +239,7 @@ class mastodon ( timeout => 0, require => File['/usr/local/bin/install_mastodon.sh'], } - $real_config = $mastodon_config + { + $built_config = { LOCAL_DOMAIN => $hostname, DB_PASS => $db_password, DB_USER => $db_user, @@ -249,6 +249,7 @@ class mastodon ( SECRET_KEY_BASE => $secret_key_base, OTP_SECRET => $otp_secret, } + $real_config = $mastodon_config + $built_config file { "${mastodon_home}/live/.env.production": ensure => $ensure, content => template('mastodon/env.production.erb'),