From 03bfa09337ebc2116e17a8566d2f9ed4ed422049 Mon Sep 17 00:00:00 2001 From: Florian Hoss <65008174+flohoss@users.noreply.github.com> Date: Thu, 16 Dec 2021 08:24:00 +0100 Subject: [PATCH] add some app_service and more commands --- Teleport/etc/teleport-node.yaml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/Teleport/etc/teleport-node.yaml b/Teleport/etc/teleport-node.yaml index 038d676..dd66475 100644 --- a/Teleport/etc/teleport-node.yaml +++ b/Teleport/etc/teleport-node.yaml @@ -13,15 +13,29 @@ auth_service: ssh_service: enabled: yes labels: - VM: example - IP: 78.47.145.201 + Type: Server permit_user_env: true - commands: - - name: OS - command: [/bin/uname, -o] + commands: + - name: IP + command: ["/bin/curl", "ifconfig.me"] period: 1h0m0s - name: UP - command: ["/bin/sh", "-c", "uptime -p | cut -c4-"] + command: ["/bin/sh", "-c", "uptime -p | cut -c4- | cut -d',' -f1"] period: 1h0m0s + - name: Docker + command: ["/bin/sh", "-c", "docker system info | grep Running | cut -d' ' -f4"] + period: 0h30m0s proxy_service: enabled: no +app_service: + enabled: yes + apps: + - name: "scrutiny" + uri: "http://localhost:8080" + public_addr: "scrutiny.tp.fhoss.de" + labels: + Type: "S.M.A.R.T" + commands: + - name: "Server" + command: ['/bin/sh', '-c', 'hostname | cut -d"." -f1 | sed -e "s/\(.\)/\U\1/"'] + period: 24h0m0s