[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-ansible-taler-exchange] branch master updated: -misc fixes
From: |
gnunet |
Subject: |
[taler-ansible-taler-exchange] branch master updated: -misc fixes |
Date: |
Sat, 28 Dec 2024 21:27:29 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository ansible-taler-exchange.
The following commit(s) were added to refs/heads/master by this push:
new 9367df8 -misc fixes
9367df8 is described below
commit 9367df8b6f96f9a9e250ada2188b98014b194307
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Dec 28 21:27:27 2024 +0100
-misc fixes
---
playbooks/setup.yml | 1 +
roles/auditor/tasks/main.yml | 5 ++++-
roles/challenger/tasks/main.yml | 8 +++++++-
roles/exchange/tasks/main.yml | 6 +++++-
.../templates/etc/taler-exchange/conf.d/exchange-business.conf.j2 | 2 ++
.../secrets/exchange-accountcredentials-primary.secret.conf.j2 | 5 -----
6 files changed, 19 insertions(+), 8 deletions(-)
diff --git a/playbooks/setup.yml b/playbooks/setup.yml
index e99e2b0..b7bb971 100644
--- a/playbooks/setup.yml
+++ b/playbooks/setup.yml
@@ -8,6 +8,7 @@
- database
- libeufin-nexus
- exchange
+ - challenger
- auditor
- monitoring
# Note that we ONLY define those variables here that are NOT
diff --git a/roles/auditor/tasks/main.yml b/roles/auditor/tasks/main.yml
index d6b21dc..7a31764 100644
--- a/roles/auditor/tasks/main.yml
+++ b/roles/auditor/tasks/main.yml
@@ -1,10 +1,13 @@
---
+- name: Get the list of services
+ service_facts:
- name: Ensure taler-auditor service is stopped before upgrading
- service:
+ systemd:
name: taler-auditor.target
state: stopped
enabled: false
+ when: "'taler-auditor.target' in services"
- name: Install Taler auditor package
apt:
diff --git a/roles/challenger/tasks/main.yml b/roles/challenger/tasks/main.yml
index 09ea934..e9b2b69 100644
--- a/roles/challenger/tasks/main.yml
+++ b/roles/challenger/tasks/main.yml
@@ -23,7 +23,7 @@
enabled: false
when: "'Postal Challenger backend' in services"
-- name: Install Challenger package
+- name: Install Challenger and Taler exchange packages
apt:
name:
- challenger-httpd
@@ -383,3 +383,9 @@
dest: /etc/nginx/sites-enabled/postal-challenger-nginx.conf
state: link
notify: restart nginx
+
+- name: Ensure taler-exchange service is is restarted with new configuration
+ service:
+ name: taler-exchange.target
+ state: restarted
+ enabled: true
diff --git a/roles/exchange/tasks/main.yml b/roles/exchange/tasks/main.yml
index 7514776..dcffdd4 100644
--- a/roles/exchange/tasks/main.yml
+++ b/roles/exchange/tasks/main.yml
@@ -1,9 +1,13 @@
---
+- name: Get the list of services
+ service_facts:
+
- name: Ensure taler-exchange service is stopped before we upgrade
- service:
+ systemd:
name: taler-exchange.target
state: stopped
enabled: false
+ when: "'taler-exchange.target' in services"
- name: Install latest Taler exchange package
apt:
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
index 2602b33..344f9f5 100644
---
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
@@ -41,6 +41,8 @@ ENABLE_DEBIT = YES
# Make sure to URL-encode spaces in $NAME!
PAYTO_URI = {{ EXCHANGE_BANK_ACCOUNT_PAYTO }}
+WIRE_METHOD = iban
+
# Credentials to access the account are in a separate
# config file with restricted permissions.
@inline-secret@ exchange-accountcredentials-primary
../secrets/exchange-accountcredentials-primary.secret.conf
diff --git
a/roles/exchange/templates/etc/taler-exchange/secrets/exchange-accountcredentials-primary.secret.conf.j2
b/roles/exchange/templates/etc/taler-exchange/secrets/exchange-accountcredentials-primary.secret.conf.j2
index 0a6ec02..4292aee 100644
---
a/roles/exchange/templates/etc/taler-exchange/secrets/exchange-accountcredentials-primary.secret.conf.j2
+++
b/roles/exchange/templates/etc/taler-exchange/secrets/exchange-accountcredentials-primary.secret.conf.j2
@@ -1,9 +1,4 @@
[exchange-accountcredentials-primary]
-PAYTO_URI = {{ EXCHANGE_BANK_ACCOUNT_PAYTO }}
-WIRE_METHOD = iban
-ENABLE_DEBIT = YES
-ENABLE_CREDIT = YES
-
WIRE_GATEWAY_AUTH_METHOD = token
WIRE_GATEWAY_URL = "http://localhost:{{ LIBEUFIN_PORT }}/taler-wire-gateway/"
TOKEN = {{
ansible_facts['ansible_local']['libeufin-nexus-access-token']['libeufin-nexus']['auth_bearer_token']
}}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-ansible-taler-exchange] branch master updated: -misc fixes,
gnunet <=