From 84f881a8f039f85a4890501892f25aa1e73f66a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <Joerg.Sachse@slub-dresden.de> Date: Thu, 7 Apr 2022 11:03:29 +0200 Subject: [PATCH] fix: ND-2227 - SubApp is now configured to include XML for significant properties --- tasks/install_subapp.yml | 7 ++++++- templates/subapp.cfg.j2 | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tasks/install_subapp.yml b/tasks/install_subapp.yml index e8d1538..28f0fa6 100644 --- a/tasks/install_subapp.yml +++ b/tasks/install_subapp.yml @@ -80,6 +80,11 @@ - "chown_dip_access.service" tags: [systemd] +- name: Config für Signifikante Eigenschaften einspielen + ansible.builtin.git: + repo: "https://git.slub-dresden.de/digital-preservation/significantproperties.git" + dest: "/home/{{ vault_subapp_user }}/.subapp/significantproperties/" + ### KONFIGURATIONEN FÜR SUBMISSION APPLICATION INSTALLIEREN ### - name: SubApp-Config einspielen block: @@ -206,4 +211,4 @@ state: stopped loop: "{{ lookup('dict', vault_stichprobe_hosts) }}" when: ansible_hostname == item.key - ignore_errors: "yes" \ No newline at end of file + ignore_errors: "yes" diff --git a/templates/subapp.cfg.j2 b/templates/subapp.cfg.j2 index 8cd1cda..9aa3754 100644 --- a/templates/subapp.cfg.j2 +++ b/templates/subapp.cfg.j2 @@ -77,6 +77,9 @@ rosetta_password:{{ vault_subapp_vars.hosts[ansible_hostname].Rosetta_Password } # Workflow name as agreed upon in the contract between producer and archive. fullname_workflow:{{ vault_subapp_vars.hosts[ansible_hostname].fullname_workflow | default("WORKFLOW_NAME_TEMPLATE") }} +# Path to the XML file that contains the encoded significant properties as agreed upon with the producer. +significant_properties_file:{{ vault_subapp_vars.hosts[ansible_hostname].significant_properties_file | default("SIGNIFICANT_PROPERTIES_FILE_PATH_TEMPLATE") }} + ### email notification configuration -- GitLab