From 86cd94e309e5d7fb45714b13a2a9ab3de7574b01 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:21:22 +0100
Subject: [PATCH] fix: add default value for Rosetta password in disapp.cfg
 template

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

diff --git a/templates/disapp.cfg.j2 b/templates/disapp.cfg.j2
index be83db2..4e5a306 100644
--- a/templates/disapp.cfg.j2
+++ b/templates/disapp.cfg.j2
@@ -52,7 +52,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