gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-grid5k] 35/141: add monitorig components


From: gnunet
Subject: [taler-grid5k] 35/141: add monitorig components
Date: Thu, 18 Nov 2021 14:49:36 +0100

This is an automated email from the git hooks/post-receive script.

marco-boss pushed a commit to branch master
in repository grid5k.

commit 056c68c8f66954646166c908f4032de3eb184d65
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Mon Oct 11 21:30:49 2021 +0200

    add monitorig components
---
 configs/etc/default/taler-exchange-secmod-rsa      |  1 +
 .../system/taler-exchange-secmod-rsa.service       | 16 +++++++++++++
 experiment/scripts/database.sh                     |  3 +++
 experiment/scripts/exchange.sh                     |  2 +-
 image/taler-debian11.yaml                          | 26 +++++++++++++++-------
 5 files changed, 39 insertions(+), 9 deletions(-)

diff --git a/configs/etc/default/taler-exchange-secmod-rsa 
b/configs/etc/default/taler-exchange-secmod-rsa
new file mode 100644
index 0000000..99052e7
--- /dev/null
+++ b/configs/etc/default/taler-exchange-secmod-rsa
@@ -0,0 +1 @@
+ARGS="-L INFO"
diff --git a/configs/usr/lib/systemd/system/taler-exchange-secmod-rsa.service 
b/configs/usr/lib/systemd/system/taler-exchange-secmod-rsa.service
new file mode 100644
index 0000000..e6df6a1
--- /dev/null
+++ b/configs/usr/lib/systemd/system/taler-exchange-secmod-rsa.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=GNU Taler payment system exchange RSA security module
+AssertPathExists=/run/taler/exchange-secmod-rsa
+PartOf=taler-exchange.target
+
+[Service]
+User=taler-exchange-secmod-rsa
+Type=simple
+Restart=on-failure
+EnvironmentFile=/etc/default/taler-exchange-secmod-rsa
+ExecStart=/usr/bin/taler-exchange-secmod-rsa -c /etc/taler/taler.conf $ARGS
+StandardOutput=journal
+StandardError=journal
+PrivateTmp=no
+PrivateDevices=yes
+ProtectSystem=full
diff --git a/experiment/scripts/database.sh b/experiment/scripts/database.sh
index a5d493a..490a686 100755
--- a/experiment/scripts/database.sh
+++ b/experiment/scripts/database.sh
@@ -1,6 +1,9 @@
 #!/bin/bash
 set -eux
 
+# move to tmp to prevent change dir errors
+cd /tmp 
+
 sed -i "s\<DB_URL_HERE>\postgresql:///${DB_NAME}\g" \
        /etc/taler/secrets/exchange-db.secret.conf
 
diff --git a/experiment/scripts/exchange.sh b/experiment/scripts/exchange.sh
index f4e7c23..a832429 100755
--- a/experiment/scripts/exchange.sh
+++ b/experiment/scripts/exchange.sh
@@ -30,7 +30,7 @@ done
 
 sleep 1
 
-systemctl start taler-exchange.target nginx
+systemctl start taler-exchange.target
 
 until wget http://${EXCHANGE_DOMAIN}/management/keys \
       --spider \
diff --git a/image/taler-debian11.yaml b/image/taler-debian11.yaml
index e3f57ed..177926e 100644
--- a/image/taler-debian11.yaml
+++ b/image/taler-debian11.yaml
@@ -38,7 +38,9 @@ global:
   # g5k_kernel_params: ""
   ## Environment visibility
   # g5k_visibility: "shared"
-  other_packages_no_clean: nginx postgresql-13 taler-exchange taler-auditor 
taler-merchant taler-exchange-offline taler-wallet-cli sudo git zile bind9 
dnsutils libtalerexchange-dev
+  other_packages_no_clean: nginx postgresql-13 taler-exchange taler-auditor 
taler-merchant taler-exchange-offline taler-wallet-cli sudo git zile dnsutils 
libtalerexchange-dev prometheus-postgres-exporter prometheus
+  disable_services: nginx postgresql prometheus* 
+  loki_version: v2.3.0
 
   ## Other parameters can be changed, see kameleon info debian10-taler.yaml
 
@@ -62,16 +64,24 @@ setup:
          apt-get update
          apt-upgrade
          apt-get install -y $${other_packages_no_clean}
-    - add_files:
-      - local2in:
-        - $$kameleon_data_dir/taler-fakebank.service
-        - /etc/systemd/system/taler-fakebank.service
-      - exec_in: chmod 640 /etc/systemd/system/taler-fakebank.service
+    - loki-promtail:
+      - exec_in: |
+         apt-get install -y unzip curl
+         curl -O -L 
"https://github.com/grafana/loki/releases/download/$${loki_verison}/loki-linux-amd64.zip";
+         unzip loki-linux-amd64.zip
+         rm loki-linux-amd64.zip
+         mv loki-linux-amd64 /usr/local/bin/loki
+         chmod 770 /usr/local/bin/loki
+         curl -O -L 
"https://github.com/grafana/loki/releases/download/$${loki_version}/promtail-linux-amd64.zip";
+         unzip promtail-linux-amd64.zip
+         rm promtail-linux-amd64.zip
+         mv promtail-linux-amd64 /usr/local/bin/promtail
+         chmod 770 /usr/local/bin/promtail
     - disable_services:
       - exec_in: |
          systemctl daemon-reload
-         systemctl stop nginx postgresql named
-         systemctl disable nginx postgresql named
+         systemctl stop $${disable_services}
+         systemctl disable $${disable_services}
     - add_taler_g5k_repo:
       - exec_in: |
          cd /root

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]