ansible-taler-exchange

Ansible playbook to deploy a production Taler Exchange
Log | Files | Refs | Submodules | README | LICENSE

commit f67608a94a63e7ec6e8cb41c578f79615857b65f
parent d51d7780983ec19232582cdbd4f8bbfc66a7ef3e
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri,  3 Jan 2025 21:12:13 +0100

fix setup issues with challenger and AML SPA

Diffstat:
Mplaybooks/setup.yml | 2++
Mroles/challenger/tasks/main.yml | 24++++++++++++++++++++++++
Mroles/exchange/templates/etc/taler-exchange/conf.d/exchange-business.conf.j2 | 2++
3 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/playbooks/setup.yml b/playbooks/setup.yml @@ -50,6 +50,8 @@ LIBEUFIN_EXCHANGE_ACCOUNT: "exchange" # Name of the bank dialect LIBEUFIN_NEXUS_BANK_DIALECT: "postfinance" +# SPA dialect (tops, gls, magnet, ...) + EXCHANGE_SPA_DIALECT: "tops" # Business name of the exchange operator EXCHANGE_OPERATOR_LEGAL_NAME: "Taler Exchange Operator Legal Name" # Where to send people after they passed KYC. diff --git a/roles/challenger/tasks/main.yml b/roles/challenger/tasks/main.yml @@ -54,6 +54,30 @@ system: true state: present +- name: Ensure /var/run/challenger-email/ directory exists + file: + path: "/var/run/challenger-email/" + state: directory + owner: challenger-email + group: www-data + mode: 0755 + +- name: Ensure /var/run/challenger-sms/ directory exists + file: + path: "/var/run/challenger-sms/" + state: directory + owner: challenger-sms + group: www-data + mode: 0755 + +- name: Ensure /var/run/challenger-postal/ directory exists + file: + path: "/var/run/challenger-postal/" + state: directory + owner: challenger-postal + group: www-data + mode: 0755 + - name: Ensure Ansible facts directory exists file: path: "/etc/ansible/facts.d/" diff --git a/roles/exchange/templates/etc/taler-exchange/conf.d/exchange-business.conf.j2 b/roles/exchange/templates/etc/taler-exchange/conf.d/exchange-business.conf.j2 @@ -18,6 +18,8 @@ BASE_URL = {{ EXCHANGE_BASE_URL }} # Where to find accepting shops? SHOPPING_URL = {{ EXCHANGE_SHOPPING_URL }} +AML_SPA_DIALECT = {{ EXCHANGE_SPA_DIALECT }} + # Attribute encryption key for storing attributes encrypted # in the database. Should be a high-entropy nonce. ATTRIBUTE_ENCRYPTION_KEY = {{ EXCHANGE_ATTRIBUTE_ENCRYPTION_KEY }}