server-setup/Teleport/etc/teleport-node.yaml

66 lines
1.7 KiB
YAML
Raw Normal View History

teleport:
nodename: example
data_dir: /var/lib/teleport
auth_token: example
auth_servers:
- 10.0.0.4:3025
log:
output: /var/lib/teleport/teleport.log
severity: ERROR
ca_pin: example
auth_service:
enabled: no
ssh_service:
enabled: "yes"
permit_user_env: true
disable_create_host_user: true
labels:
_IaaS: Provider
_Type: Machine
2022-06-29 13:47:26 +02:00
commands:
- name: _IP
command: ["/bin/sh", "-c", "nslookup example.de | awk -F': ' 'NR==6 {print $2}'"]
period: "12h"
- name: 1-Teleport
2022-06-29 13:47:26 +02:00
command: ["/bin/sh", "-c", "teleport version | cut -d' ' -f2"]
period: "12h"
- name: 2-Docker
command: ["/bin/sh", "-c", "docker version --format '{{.Server.Version}}'"]
period: "12h"
- name: 3-Compose
command: ["/bin/sh", "-c", "docker compose version --short"]
period: "12h"
- name: 4-Restic
command: ["/bin/sh", "-c", "restic version | cut -d ' ' -f2"]
period: "12h"
- name: 5-Rclone
command: ["/bin/sh", "-c", "rclone version | head -1 | cut -d ' ' -f2"]
period: "12h"
- name: 6-Services
command: ["/bin/sh", "-c", "docker system info | grep Running | cut -d' ' -f4"]
period: "30m"
- name: 7-Kernel
command: ["/bin/uname", "-r"]
period: "12h"
proxy_service:
enabled: no
2021-12-16 08:24:00 +01:00
app_service:
enabled: yes
2022-06-29 13:47:26 +02:00
apps:
- name: "dns"
description: "PiHole"
uri: "http://localhost/admin/"
rewrite:
redirect:
- "localhost"
- "dns.tp.unjx.de"
2021-12-16 08:24:00 +01:00
- 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