taler-deployment

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

commit 926b54290097d8607476ec73405519abebd5efea
parent 68d287037b3c99476ac33bd77213bdb0c0a3752e
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Fri, 28 Jun 2019 20:20:57 +0200

Config.

Instruct the ARM to launch the Twisters conditionally.

Diffstat:
Mbin/taler-deployment-start | 17+++++++----------
Mconfig/generate-config | 5+++--
2 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/bin/taler-deployment-start b/bin/taler-deployment-start @@ -1,8 +1,6 @@ #!/bin/bash -base=$HOME - -export PATH="$base/deployment":$PATH +export PATH="$HOME/deployment":$PATH # might fail if invoked from another script with ulimit ulimit -c $((100 * 1024)) &>/dev/null || true @@ -11,10 +9,6 @@ cd $HOME taler-deployment-arm -s -if [ "${TALER_CONFIG_STANDALONE:-0}" = 1 ]; then - taler-deployment-arm -i taler-postgres-standalone -fi - taler-deployment-arm -i taler-exchange taler-deployment-arm -i taler-auditor taler-deployment-arm -i taler-merchant @@ -25,9 +19,12 @@ taler-deployment-arm -i taler-survey taler-deployment-arm -i taler-aggregator taler-deployment-arm -i taler-exchange-wirewatch taler-deployment-arm -i taler-backoffice -taler-deployment-arm -i taler-twister -taler-deployment-arm -i taler-twister-exchange -taler-deployment-arm -i taler-twister-bank + +if $(taler-config -s twister -o taler_deploy >& /dev/null); then + taler-deployment-arm -i taler-twister + taler-deployment-arm -i taler-twister-exchange + taler-deployment-arm -i taler-twister-bank +fi if [[ "$TALER_ENV_NAME" = test ]]; then taler-deployment-arm -i taler-playground diff --git a/config/generate-config b/config/generate-config @@ -70,8 +70,9 @@ def config(obj): if obj.twisted: ## - # Instructs ARM to lunch the Twisters. - obj.cfg_put("twister", "taler_deployed", "YES") + # Instructs ARM to lunch the Twisters, any value works. + # If missing, ARM will not launch Twisters. + obj.cfg_put("twister", "taler_deploy", "") obj.cfg_put("twister", "serve", "unix") obj.cfg_put("twister", "chaos_rate", "20")