From ec12d0f31a09025c7ce95f09b5c0dd6d70ec96db Mon Sep 17 00:00:00 2001 From: tremor021 Date: Wed, 18 Mar 2026 13:39:51 +0100 Subject: [PATCH] add Teleport script --- ct/teleport.sh | 46 +++++++++++++++++++++++++++++++++++++ install/teleport-install.sh | 31 +++++++++++++++++++++++++ json/teleport.json | 40 ++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 ct/teleport.sh create mode 100644 install/teleport-install.sh create mode 100644 json/teleport.json diff --git a/ct/teleport.sh b/ct/teleport.sh new file mode 100644 index 000000000..8ab019924 --- /dev/null +++ b/ct/teleport.sh @@ -0,0 +1,46 @@ +#!/usr/bin/env bash +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: Slaviša Arežina (tremor021) +# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE +# Source: https://goteleport.com/ + +APP="Teleport" +var_tags="${var_tags:-}" +var_cpu="${var_cpu:-1}" +var_ram="${var_ram:-512}" +var_disk="${var_disk:-4}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_unprivileged="${var_unprivileged:-1}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + if [[ ! -f /etc/teleport.yaml ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + msg_info "Updating Teleport" + $STD apt update + $STD apt upgrade -y + msg_ok "Updated successfully!" + exit +} + +start +build_container +description + +msg_ok "Completed successfully!\n" +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" +echo -e "${INFO}${YW} Access it using the following URL:${CL}" +echo -e "${TAB}${GATEWAY}${BGN}https://${IP}:3080${CL}" diff --git a/install/teleport-install.sh b/install/teleport-install.sh new file mode 100644 index 000000000..0a8848ca0 --- /dev/null +++ b/install/teleport-install.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: Slaviša Arežina (tremor021) +# License: MIT | https://github.com/community-scripts/ProxmoxVED/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 teleport configure -o /etc/teleport.yaml +systemctl enable -q --now teleport +$STD tctl users add teleport-admin --roles=editor,access --logins=root >~/teleportadmin.creds +msg_ok "Configured CaddyManager" + +motd_ssh +customize +cleanup_lxc diff --git a/json/teleport.json b/json/teleport.json new file mode 100644 index 000000000..04fde9c7c --- /dev/null +++ b/json/teleport.json @@ -0,0 +1,40 @@ +{ + "name": "Teleport", + "slug": "teleport", + "categories": [ + 6 + ], + "date_created": "2026-03-18", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 80, + "documentation": "https://goteleport.com/docs/", + "config_path": "/etc/teleport.yaml", + "website": "https://goteleport.com/", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/teleport.webp", + "description": "Teleport unifies identities — humans, machines, and AI — with strong identity implementation to speed up engineering, improve resiliency against identity-based attacks, and control AI in production infrastructure.", + "install_methods": [ + { + "type": "default", + "script": "ct/teleport.sh", + "resources": { + "cpu": 1, + "ram": 512, + "hdd": 4, + "os": "Debian", + "version": "13" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [ + { + "text": "After installation finishes, do `cat ~/teleportadmin.creds` inside LXC to get admin creation URL.", + "type": "info" + } + ] +} \ No newline at end of file