taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 67e29b2cddb42e7a6a219e4e13ca865966682609
parent 7e580ce7cf0c87c8e900a20898d2aa975790b436
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Tue, 11 Jun 2019 14:56:06 +0200

configuring other twists

Diffstat:
Mconfig/generate-config | 32++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+), 0 deletions(-)

diff --git a/config/generate-config b/config/generate-config @@ -313,8 +313,40 @@ def main(currency, envname, outdir, shared_outdir, exchange_pub, standalone): if outdir: os.makedirs(outdir, exist_ok=True) + tc = os.path.join(outdir, "taler.conf") cfg_write(open(tc, "w")) + + if "test" == envname: + + # Emptying all first. + sections = OrderedDict() + + # Twisting the exchange. + cfg_put("twister", "serve", "unix") + cfg_put("twister", "chaos_rate", "20") + cfg_put("twister", "destination_base_url", "https://exchange.test.taler.net/") + cfg_put("twister", "serve_unixpath", "$HOME/sockets/twister-exchange.http") + cfg_put("twister", "serve_unixmode", "660") + cfg_put("twister", "unixpath", "$HOME/sockets/twister-exchange-control.sock") + cfg_put("twister", "unix_match_uid", "no") + cfg_put("twister", "unix_match_gid", "yes") + + tc_twister_exchange = os.path.join(outdir, "twister-exchange.conf") + cfg_write(open(tc_twister_exchange, "w")) + + # Twisting the bank. + cfg_put("twister", "serve", "unix") + cfg_put("twister", "chaos_rate", "20") + cfg_put("twister", "destination_base_url", "https://bank.test.taler.net/") + cfg_put("twister", "serve_unixpath", "$HOME/sockets/twister-bank.http") + cfg_put("twister", "serve_unixmode", "660") + cfg_put("twister", "unixpath", "$HOME/sockets/twister-bank-control.sock") + cfg_put("twister", "unix_match_uid", "no") + cfg_put("twister", "unix_match_gid", "yes") + + tc_twister_bank = os.path.join(outdir, "twister-bank.conf") + cfg_write(open(tc_twister_bank, "w")) else: cfg_write(sys.stdout)