ansible-taler-exchange

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

commit 2b55d77e6e07d6a53fb57c5d75fdfe3248aad6d3
parent eabf08ff9bfaefd9a8892b493645c1942af9d41b
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Mon,  5 May 2025 16:26:53 +0200

add FORM_ID to challenger outputs

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

diff --git a/roles/challenger/files/usr/local/bin/jq-email-converter b/roles/challenger/files/usr/local/bin/jq-email-converter @@ -9,7 +9,7 @@ # the "CONTACT_PHONE" field. # # Uses JQ to convert! -exec jq 'if .address_type!="email" then halt_error(4) else (. | .id?) |= (. | tostring) | .CONTACT_EMAIL=.address.email | del(.address) | del(.address_type) end' +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,7 +9,7 @@ # the "ADDRESS_*" fields. # # Uses JQ to convert! -exec jq 'if .address_type!="postal" and .address_type !="postal-ch" then halt_error(4) else (. | .id?) |= (. | tostring) | .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' +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,7 +9,7 @@ # the "CONTACT_PHONE" field. # # Uses JQ to convert! -exec jq 'if .address_type!="phone" then halt_error(4) else (. | .id?) |= (. | tostring) | .CONTACT_PHONE=.address.CONTACT_PHONE | del(.address) | del(.address_type) end' +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: # {