diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-06-11 14:56:06 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-06-11 14:56:06 +0200 |
commit | 67e29b2cddb42e7a6a219e4e13ca865966682609 (patch) | |
tree | 5fa2e5337948bec01f4e899421f474a8cf56a41c /config | |
parent | 7e580ce7cf0c87c8e900a20898d2aa975790b436 (diff) | |
download | deployment-67e29b2cddb42e7a6a219e4e13ca865966682609.tar.gz deployment-67e29b2cddb42e7a6a219e4e13ca865966682609.tar.bz2 deployment-67e29b2cddb42e7a6a219e4e13ca865966682609.zip |
configuring other twists
Diffstat (limited to 'config')
-rwxr-xr-x | config/generate-config | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/config/generate-config b/config/generate-config index 12fac57..6b844d1 100755 --- 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) |