ansible-taler-exchange

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

commit ae6719443a1a2ff4cbe8110498ed5ca813c1ac3a
parent 2f01325e4bcb8f556f41e9c5e45cffff3f7526fc
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu, 26 Dec 2024 14:10:38 +0100

import playbook seems to work as designed

Diffstat:
MTODO | 4+---
Mplaybooks/libeufin-export.yml | 12++++++++++++
Mroles/libeufin-transaction-export/tasks/main.yml | 4++--
Mroles/libeufin-transaction-import/tasks/main.yml | 2++
4 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/TODO b/TODO @@ -1,6 +1,7 @@ @DVN: - setup postfix role (needed for email-challenger) => https://github.com/FoxyRoles/ansible-dkim seems about right! +- playbooks/libeufin-export.yml: see FIXME, can you please fix that? ;-) @TBD (#9352)2 - postgres prometheus exporter setup is incomplete: postgres part (access!) is missing @@ -9,9 +10,6 @@ - check limit access using basic auth to prometheus exporters => right now uses Bearer token. Is that OK? -@CG: -- add playbooks to TOPS to import/export libeufin transactions - ---- @LATER: - setup deltoid's grafana to query those with access control diff --git a/playbooks/libeufin-export.yml b/playbooks/libeufin-export.yml @@ -3,3 +3,15 @@ hosts: all roles: - libeufin-transaction-export + +- name: Unpack locally + hosts: 127.0.0.1 + connection: local + tasks: + - name: unpack + ansible.builtin.shell: + cmd: "unzip spec.taler-ops.ch{{ hostvars['spec.taler-ops.ch']['exportfile']['path'] }}" + chdir: "../exports/{{ hostvars['spec.taler-ops.ch']['today']['stdout'] }}" + +# FIXME: should replace spec.taler-ops.ch above with some +# variable, and then set that variable via the inventory. diff --git a/roles/libeufin-transaction-export/tasks/main.yml b/roles/libeufin-transaction-export/tasks/main.yml @@ -21,8 +21,8 @@ - name: Fetch file to local system fetch: - src: "{{ exportfile }}" - dest: "exports/{{ today.stdout }}" + src: "{{ exportfile.path }}" + dest: "../exports/{{ today.stdout }}" #- name: Remove the temporary file on the server # ansible.builtin.file: diff --git a/roles/libeufin-transaction-import/tasks/main.yml b/roles/libeufin-transaction-import/tasks/main.yml @@ -15,6 +15,8 @@ copy: src: "{{ SOURCE }}" dest: "{{ importfile.path }}" + owner: libeufin-nexus + mode: 400 - name: Import into libeufin-nexus ansible.builtin.shell: