From 48cdeccb6f924b43b38207f4fa0ed5d439b9885b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de>
Date: Mon, 13 Nov 2023 10:20:26 +0100
Subject: [PATCH] fix: add default value for Rosetta password in subapp.cfg
 template

---
 templates/subapp.cfg.j2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/subapp.cfg.j2 b/templates/subapp.cfg.j2
index 70e6909..eafff4a 100644
--- a/templates/subapp.cfg.j2
+++ b/templates/subapp.cfg.j2
@@ -62,7 +62,7 @@ rosetta_materialflowId:{{ vault_subapp_vars.hosts[ansible_hostname].MaterialFlow
 # username of the user that the subapp will use for authentication against PDS/Rosetta
 rosetta_user:{{ vault_subapp_vars.hosts[ansible_hostname].User | default("SUBMISSION_APPLICATION_USER_TEMPLATE") }}
 # password of that user
-rosetta_password:{{ vault_subapp_vars.hosts[ansible_hostname].Rosetta_Password }}
+rosetta_password:{{ vault_subapp_vars.hosts[ansible_hostname].Rosetta_Password | default("ROSETTA_PASSWORD_TEMPLATE") }}
 
 
 
-- 
GitLab