ansible-taler-exchange

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

commit 96c3339526da58ce45382a6f949dc02cecdbeb39
parent d260b0551eadbd5299b16333562bbdb9f903245f
Author: Florian Dold <florian@dold.me>
Date:   Mon,  5 May 2025 21:42:35 +0200

deprecate jq converters

Diffstat:
Mroles/challenger/files/usr/local/bin/jq-email-converter | 2++
Mroles/challenger/files/usr/local/bin/jq-postal-converter | 1+
Mroles/challenger/files/usr/local/bin/jq-sms-converter | 1+
3 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/roles/challenger/files/usr/local/bin/jq-email-converter b/roles/challenger/files/usr/local/bin/jq-email-converter @@ -9,6 +9,8 @@ # the "CONTACT_PHONE" field. # # Uses JQ to convert! + +echo "DEPRECATED, please use taler-exchange-kyc-challenger-email-converter instead" >&2 exec jq 'if .address_type!="email" then halt_error(4) else (. | .id?) |= (. | tostring) | .FORM_ID="challenger-email" | .FORM_VERSION=0 | .CONTACT_EMAIL=.address.email | del(.address) | del(.address_type) end' # Example input: diff --git a/roles/challenger/files/usr/local/bin/jq-postal-converter b/roles/challenger/files/usr/local/bin/jq-postal-converter @@ -9,6 +9,7 @@ # the "ADDRESS_*" fields. # # Uses JQ to convert! +echo "DEPRECATED, please use taler-exchange-kyc-challenger-postal-converter instead" >&2 exec jq 'if .address_type!="postal" and .address_type !="postal-ch" then halt_error(4) else (. | .id?) |= (. | tostring) | .FORM_ID="challenger-postal" | .FORM_VERSION=0 | .CONTACT_NAME=.address.CONTACT_NAME | .ADDRESS_LINES=.address.ADDRESS_LINES | if .address_type=="postal" then .ADDRESS_COUNTRY=.address.ADDRESS_COUNTRY else .ADDRESS_COUNTRY="CH" end | del(.address) | del(.address_type) end' # Example input: diff --git a/roles/challenger/files/usr/local/bin/jq-sms-converter b/roles/challenger/files/usr/local/bin/jq-sms-converter @@ -9,6 +9,7 @@ # the "CONTACT_PHONE" field. # # Uses JQ to convert! +echo "DEPRECATED, please use taler-exchange-kyc-challenger-sms-converter instead" >&2 exec jq 'if .address_type!="phone" then halt_error(4) else (. | .id?) |= (. | tostring) | .CONTACT_PHONE=.address.CONTACT_PHONE | .FORM_ID="challenger-sms" | .FORM_VERSION=0 | del(.address) | del(.address_type) end' # Example input: