✨ feat(infrastructure): introduce ansible deployment for taler services
- add ansible playbooks and roles for deploying taler exchange and merchant
- configure PostgreSQL, GNU Taler repositories, and services
🔧 chore(config): provide example env and gitignore for sensitive files
- create .env-example with placeholders for sensitive info
- add .gitignore entries for .env and common editor files
This commit is contained in:
parent
ca89a06864
commit
fdc9234540
18 changed files with 525 additions and 0 deletions
47
roles/taler_exchange/templates/exchange.conf.j2
Normal file
47
roles/taler_exchange/templates/exchange.conf.j2
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
# Generated by Ansible - manual edits will be overwritten.
|
||||
[exchange]
|
||||
BASE_URL = https://{{ taler_config.exchange_host }}/
|
||||
CURRENCY = {{ taler_config.currency }}
|
||||
DB = postgres
|
||||
MASTER_PUBLIC_KEY = {{ taler_config.exchange_master_key }}
|
||||
IDLE_RESERVE_EXPIRATION_TIME = 4 weeks
|
||||
RESHARE_RESERVE_EXPIRATION_TIME = 8 weeks
|
||||
|
||||
{% set exchange_user = taler_config.db.exchange.user %}
|
||||
{% set exchange_pass = taler_config.db.exchange.password %}
|
||||
{% set exchange_auth = exchange_user if not exchange_pass else exchange_user ~ ':' ~ exchange_pass %}
|
||||
[exchangedb-postgres]
|
||||
CONFIG = postgres://{{ exchange_auth }}@{{ taler_config.db.host }}:{{ taler_config.db.port }}/{{ taler_config.db.exchange.name }}
|
||||
|
||||
[coin_{{ taler_config.currency | lower }}_1]
|
||||
VALUE = {{ taler_config.currency }}:0.50
|
||||
DURATION_WITHDRAW = 12 weeks
|
||||
DURATION_SPEND = 52 weeks
|
||||
DURATION_DEPOSIT = 104 weeks
|
||||
DURATION_LEGAL = 208 weeks
|
||||
FEE_WITHDRAW = 0.00 {{ taler_config.currency }}
|
||||
FEE_DEPOSIT = 0.00 {{ taler_config.currency }}
|
||||
FEE_REFRESH = 0.00 {{ taler_config.currency }}
|
||||
FEE_REFUND = 0.00 {{ taler_config.currency }}
|
||||
|
||||
[coin_{{ taler_config.currency | lower }}_2]
|
||||
VALUE = {{ taler_config.currency }}:1.00
|
||||
DURATION_WITHDRAW = 12 weeks
|
||||
DURATION_SPEND = 52 weeks
|
||||
DURATION_DEPOSIT = 104 weeks
|
||||
DURATION_LEGAL = 208 weeks
|
||||
FEE_WITHDRAW = 0.00 {{ taler_config.currency }}
|
||||
FEE_DEPOSIT = 0.00 {{ taler_config.currency }}
|
||||
FEE_REFRESH = 0.00 {{ taler_config.currency }}
|
||||
FEE_REFUND = 0.00 {{ taler_config.currency }}
|
||||
|
||||
[coin_{{ taler_config.currency | lower }}_3]
|
||||
VALUE = {{ taler_config.currency }}:5.00
|
||||
DURATION_WITHDRAW = 12 weeks
|
||||
DURATION_SPEND = 52 weeks
|
||||
DURATION_DEPOSIT = 104 weeks
|
||||
DURATION_LEGAL = 208 weeks
|
||||
FEE_WITHDRAW = 0.00 {{ taler_config.currency }}
|
||||
FEE_DEPOSIT = 0.00 {{ taler_config.currency }}
|
||||
FEE_REFRESH = 0.00 {{ taler_config.currency }}
|
||||
FEE_REFUND = 0.00 {{ taler_config.currency }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue