ansible-taler-exchange

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

commit d834a22bc8d1e4676f4b2aedde4fba2af069b1e4
parent 8ebfb7882c6fdad867eb4ccfa2a28c67403e3bc7
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 30 Mar 2025 14:13:44 +0200

expand challenger config and add custom welcome message

Diffstat:
Aroles/challenger/files/etc/challenger/postal-message-template.txt | 24++++++++++++++++++++++++
Mroles/challenger/tasks/pre-exchange.yml | 5+++++
Mroles/challenger/templates/etc/challenger/challenger-email.conf.j2 | 4++++
Mroles/challenger/templates/etc/challenger/challenger-postal.conf.j2 | 7+++++++
Mroles/challenger/templates/etc/challenger/challenger-sms.conf.j2 | 4++++
5 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/roles/challenger/files/etc/challenger/postal-message-template.txt b/roles/challenger/files/etc/challenger/postal-message-template.txt @@ -0,0 +1,24 @@ +Thank you for using GNU Taler. To complete your address validation +please enter the PIN {{pin}} at {{challenger_url}}. Please note that +this may not be the last step in your onboarding process. You should +afterwards check your customer portal page to see if you need to +supply further information. + +Vielen Dank, dass Sie GNU Taler nutzen. Um Ihre Adressvalidierung +abzuschließen, geben Sie bitte die PIN {{pin}} unter +{{challenger_url}} ein. Bitte beachten Sie, dass dies möglicherweise +nicht der letzte Schritt Ihres Onboarding-Prozesses ist. Überprüfen +Sie bitte anschließend auf Ihrer Kundenportalseite, ob weitere +Informationen von Ihnen benötigt werden. + +Merci d'utiliser GNU Taler. Pour valider votre adresse, veuillez +saisir le code PIN {{pin}} à l'adresse {{challenger_url}}. Veuillez +noter que cette étape ne sera peut-être pas la dernière de votre +processus d'intégration. Consultez ensuite votre portail client pour +savoir si vous devez fournir des informations supplémentaires. + +Grazie per aver utilizzato GNU Taler. Per completare la convalida del +tuo indirizzo, inserisci il PIN {{pin}} su {{challenger_url}}. Nota +che questo potrebbe non essere l'ultimo passaggio del tuo processo di +onboarding. Dovresti in seguito controllare la pagina del tuo portale +clienti per vedere se hai bisogno di fornire ulteriori informazioni. diff --git a/roles/challenger/tasks/pre-exchange.yml b/roles/challenger/tasks/pre-exchange.yml @@ -243,6 +243,11 @@ group: root mode: "0700" +- name: Place postal message template + copy: + src: etc/challenger/postal-message-template.txt + dest: /etc/challenger/postal-message-template.txt + - name: Place postal-challenger systemd service file copy: src: etc/systemd/system/postal-challenger-httpd.service diff --git a/roles/challenger/templates/etc/challenger/challenger-email.conf.j2 b/roles/challenger/templates/etc/challenger/challenger-email.conf.j2 @@ -14,6 +14,10 @@ UNIXPATH_MODE = 666 # Example commands are challenger-send-{sms,email,post}.sh AUTH_COMMAND = /usr/bin/challenger-send-email.sh +# Publicly visible base URL of the challenger. +# BASE_URL = https://example.com/ +BASE_URL = https://email.challenger.{{ DOMAIN_NAME }}/ + # What address type are we validating? (phone, email, address, etc.) # A template of the form 'enter-$ADDRESS_TYPE-form' must # exist and the field names must be supported by the diff --git a/roles/challenger/templates/etc/challenger/challenger-postal.conf.j2 b/roles/challenger/templates/etc/challenger/challenger-postal.conf.j2 @@ -14,6 +14,13 @@ UNIXPATH_MODE = 666 # Example commands are challenger-send-{sms,email,post}.sh AUTH_COMMAND = /usr/bin/challenger-send-post.sh +# Publicly visible base URL of the challenger. +# BASE_URL = https://example.com/ +BASE_URL = https://postal.challenger.{{ DOMAIN_NAME }}/ + +# Name of a file with the message to send with the challenge. +MESSAGE_TEMPLATE_FILE = /etc/challenger/postal-message-template.txt + # What address type are we validating? (phone, email, address, etc.) # A template of the form 'enter-$ADDRESS_TYPE-form' must # exist and the field names must be supported by the diff --git a/roles/challenger/templates/etc/challenger/challenger-sms.conf.j2 b/roles/challenger/templates/etc/challenger/challenger-sms.conf.j2 @@ -14,6 +14,10 @@ UNIXPATH_MODE = 666 # Example commands are challenger-send-{sms,email,post}.sh AUTH_COMMAND = /usr/bin/challenger-send-sms.sh +# Publicly visible base URL of the challenger. +# BASE_URL = https://example.com/ +BASE_URL = https://sms.challenger.{{ DOMAIN_NAME }}/ + # What address type are we validating? (phone, email, address, etc.) # A template of the form 'enter-$ADDRESS_TYPE-form' must # exist and the field names must be supported by the