mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-11-28 17:48:34 +01:00
39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
# Copyright (c) 2021-2026 community-scripts ORG
|
|
# Author: Slaviša Arežina (tremor021)
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
# Source: https://goteleport.com/
|
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
color
|
|
verb_ip6
|
|
catch_errors
|
|
setting_up_container
|
|
network_check
|
|
update_os
|
|
|
|
setup_deb822_repo \
|
|
"teleport" \
|
|
"https://deb.releases.teleport.dev/teleport-pubkey.asc" \
|
|
"https://apt.releases.teleport.dev/debian" \
|
|
"trixie" \
|
|
"stable/v18"
|
|
|
|
msg_info "Configuring Teleport"
|
|
$STD apt install -y teleport
|
|
$STD teleport configure -o /etc/teleport.yaml
|
|
systemctl enable -q --now teleport
|
|
SECONDS=0
|
|
until teleport debug readyz &>/dev/null; do
|
|
sleep 2
|
|
((SECONDS >= 120)) && { msg_error "Teleport did not become ready in time"; exit 1; }
|
|
done
|
|
tctl users add teleport-admin --roles=editor,access --logins=root >~/teleportadmin.txt
|
|
sed -i "s|https://[^:]*:3080|https://${LOCAL_IP}:3080|g" ~/teleportadmin.txt
|
|
msg_ok "Configured Teleport"
|
|
|
|
motd_ssh
|
|
customize
|
|
cleanup_lxc
|