From 12505177f11963cd59047662bd14abe127b661b3 Mon Sep 17 00:00:00 2001 From: matheus Date: Wed, 14 Aug 2024 11:10:56 -0300 Subject: [PATCH] [v14] Update install script references to use CDN (#44838) (#45087) * Update install script references to use CDN (#44838) * Update link in main doc page * Add back blank line at the end of `docs/config.json` Co-authored-by: fheinecke <23390735+fheinecke@users.noreply.github.com> --------- Co-authored-by: fheinecke <23390735+fheinecke@users.noreply.github.com> --- .github/workflows/post-release.yaml | 3 ++- docs/config.json | 3 ++- docs/pages/includes/install-linux-oss.mdx | 2 +- docs/pages/index.mdx | 2 +- examples/agent-pool-terraform/teleport/userdata | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/post-release.yaml b/.github/workflows/post-release.yaml index d04e66d573acd..05e12675db625 100644 --- a/.github/workflows/post-release.yaml +++ b/.github/workflows/post-release.yaml @@ -104,7 +104,8 @@ jobs: .variables.teleport.latest_oss_docker_image |= sub(":.*";":")+$version | .variables.teleport.latest_oss_debug_docker_image |= sub(":.*";":")+$version | .variables.teleport.latest_ent_docker_image |= sub(":.*";":")+$version | - .variables.teleport.latest_ent_debug_docker_image |= sub(":.*";":")+$version' \ + .variables.teleport.latest_ent_debug_docker_image |= sub(":.*";":")+$version | + .variables.teleport.teleport_install_script_url |= sub("install-v.*.sh"; "install-v"+$version+".sh")' \ docs/config.json > docs/confignew.json cat docs/confignew.json mv docs/confignew.json docs/config.json diff --git a/docs/config.json b/docs/config.json index 636623e6b6ed6..5c4aba209c3c7 100644 --- a/docs/config.json +++ b/docs/config.json @@ -1379,7 +1379,8 @@ "latest_oss_docker_image": "public.ecr.aws/gravitational/teleport-distroless:14.3.23", "latest_oss_debug_docker_image": "public.ecr.aws/gravitational/teleport-distroless-debug:14.3.23", "latest_ent_docker_image": "public.ecr.aws/gravitational/teleport-ent-distroless:14.3.23", - "latest_ent_debug_docker_image": "public.ecr.aws/gravitational/teleport-ent-distroless-debug:14.3.23" + "latest_ent_debug_docker_image": "public.ecr.aws/gravitational/teleport-ent-distroless-debug:14.3.23", + "teleport_install_script_url": "https://cdn.teleport.dev/install-v15.4.11.sh" }, "terraform": { "version": "1.0.0" diff --git a/docs/pages/includes/install-linux-oss.mdx b/docs/pages/includes/install-linux-oss.mdx index a14d4c32c61be..d63d205e9cc28 100644 --- a/docs/pages/includes/install-linux-oss.mdx +++ b/docs/pages/includes/install-linux-oss.mdx @@ -2,6 +2,6 @@ The following command updates the repository for the package manager on the local operating system and installs the provided Teleport version: ```code -$ curl https://goteleport.com/static/install.sh | bash -s (=teleport.version=) +$ curl (=teleport.teleport_install_script_url=) | bash -s (=teleport.version=) ``` diff --git a/docs/pages/index.mdx b/docs/pages/index.mdx index 4833e271cfb8d..5f1f3d09607ae 100644 --- a/docs/pages/index.mdx +++ b/docs/pages/index.mdx @@ -101,7 +101,7 @@ set up records for: On your Linux host, run the following command to install the Teleport binary: ```code -$ curl https://goteleport.com/static/install.sh | bash -s (=teleport.version=) +$ curl (=teleport.teleport_install_script_url=) | bash -s (=teleport.version=) ``` #### Configure Teleport diff --git a/examples/agent-pool-terraform/teleport/userdata b/examples/agent-pool-terraform/teleport/userdata index b68110177dc46..c417d6119e6cf 100644 --- a/examples/agent-pool-terraform/teleport/userdata +++ b/examples/agent-pool-terraform/teleport/userdata @@ -1,6 +1,6 @@ #!/bin/bash -curl https://goteleport.com/static/install.sh | bash -s ${teleport_version} ${teleport_edition} +curl https://cdn.teleport.dev/install-v${teleport_version}.sh | bash -s ${teleport_version} ${teleport_edition} echo ${token} > /var/lib/teleport/token cat</etc/teleport.yaml