From 459145f247eac197d0d01fe1f94f3a521b7df7f8 Mon Sep 17 00:00:00 2001 From: Britton Riggs <104870596+briggs-octo@users.noreply.github.com> Date: Tue, 9 Jan 2024 16:42:05 -0700 Subject: [PATCH 01/11] Update Ubuntu tentacle install instructions Updating Ubuntu tentacle install instructions to remove deprecated add-key command --- .../deployment-targets/tentacle/linux/index.mdx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/pages/docs/infrastructure/deployment-targets/tentacle/linux/index.mdx b/src/pages/docs/infrastructure/deployment-targets/tentacle/linux/index.mdx index 1450d4127c..8b63278e75 100644 --- a/src/pages/docs/infrastructure/deployment-targets/tentacle/linux/index.mdx +++ b/src/pages/docs/infrastructure/deployment-targets/tentacle/linux/index.mdx @@ -61,9 +61,22 @@ Many of the steps described below require elevated permissions, or must be run a Debian/Ubuntu repository ```bash -apt-key adv --fetch-keys https://apt.octopus.com/public.key +apt update && apt install --no-install-recommends gnupg curl ca-certificates apt-transport-https && \ + install -m 0755 -d /etc/apt/keyrings + +curl -fsSL https://apt.octopus.com/public.key | sudo gpg --dearmor -o /etc/apt/keyrings/octopus.gpg + +chmod a+r /etc/apt/keyrings/octopus.gpg + +echo \ + "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/octopus.gpg] https://apt.octopus.com/ \ + stable main" | \ + tee /etc/apt/sources.list.d/octopus.list > /dev/null + +# for legacy Ubuntu (< 18.04) use +# apt-key adv --fetch-keys https://apt.octopus.com/public.key +# add-apt-repository "deb https://apt.octopus.com/ stretch main" -add-apt-repository "deb https://apt.octopus.com/ stretch main" # for Raspbian use # sh -c "echo 'deb https://apt.octopus.com/ buster main' >> /etc/apt/sources.list" From cba2648b213558880b559b02a77b120abef52700 Mon Sep 17 00:00:00 2001 From: Britton Riggs <104870596+briggs-octo@users.noreply.github.com> Date: Tue, 9 Jan 2024 16:56:16 -0700 Subject: [PATCH 02/11] Update quickstart-debian.include.md --- .../quickstart-debian.include.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/shared-content/infrastructure/quickstart-debian.include.md b/src/shared-content/infrastructure/quickstart-debian.include.md index e132a86042..3ef922a2ce 100644 --- a/src/shared-content/infrastructure/quickstart-debian.include.md +++ b/src/shared-content/infrastructure/quickstart-debian.include.md @@ -14,8 +14,22 @@ role="web server" # The role to assign to the Tentacle configFilePath="/etc/octopus/default/tentacle-default.config" applicationPath="/home/Octopus/Applications/" -apt-key adv --fetch-keys https://apt.octopus.com/public.key -add-apt-repository "deb https://apt.octopus.com/ stretch main" +apt-get update && apt-get install --no-install-recommends gnupg curl ca-certificates apt-transport-https && \ + install -m 0755 -d /etc/apt/keyrings + +curl -fsSL https://apt.octopus.com/public.key | sudo gpg --dearmor -o /etc/apt/keyrings/octopus.gpg + +chmod a+r /etc/apt/keyrings/octopus.gpg + +echo \ + "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/octopus.gpg] https://apt.octopus.com/ \ + stable main" | \ + tee /etc/apt/sources.list.d/octopus.list > /dev/null + +# for legacy Ubuntu (< 18.04) use +# apt-key adv --fetch-keys https://apt.octopus.com/public.key +# add-apt-repository "deb https://apt.octopus.com/ stretch main" + apt-get update apt-get install tentacle From 785c5c170b0a8ad5da9c48a52f100214d9b99e7a Mon Sep 17 00:00:00 2001 From: Britton Riggs <104870596+briggs-octo@users.noreply.github.com> Date: Tue, 9 Jan 2024 16:57:36 -0700 Subject: [PATCH 03/11] Changing to apt-get to for consistency --- .../infrastructure/deployment-targets/tentacle/linux/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/docs/infrastructure/deployment-targets/tentacle/linux/index.mdx b/src/pages/docs/infrastructure/deployment-targets/tentacle/linux/index.mdx index 8b63278e75..c77481734b 100644 --- a/src/pages/docs/infrastructure/deployment-targets/tentacle/linux/index.mdx +++ b/src/pages/docs/infrastructure/deployment-targets/tentacle/linux/index.mdx @@ -61,7 +61,7 @@ Many of the steps described below require elevated permissions, or must be run a Debian/Ubuntu repository ```bash -apt update && apt install --no-install-recommends gnupg curl ca-certificates apt-transport-https && \ +apt-get update && apt-get install --no-install-recommends gnupg curl ca-certificates apt-transport-https && \ install -m 0755 -d /etc/apt/keyrings curl -fsSL https://apt.octopus.com/public.key | sudo gpg --dearmor -o /etc/apt/keyrings/octopus.gpg From bc4a923660570d677c6e825fe0b2802096cc1fa7 Mon Sep 17 00:00:00 2001 From: Britton Riggs <104870596+briggs-octo@users.noreply.github.com> Date: Tue, 9 Jan 2024 17:05:05 -0700 Subject: [PATCH 04/11] Updating tentacle install commands to remove deprecated command Removing deprecated add-key command --- .../terraform/provision-aws-with-terraform.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/pages/docs/runbooks/runbook-examples/terraform/provision-aws-with-terraform.md b/src/pages/docs/runbooks/runbook-examples/terraform/provision-aws-with-terraform.md index 27bbe72d25..1bfd3fa312 100644 --- a/src/pages/docs/runbooks/runbook-examples/terraform/provision-aws-with-terraform.md +++ b/src/pages/docs/runbooks/runbook-examples/terraform/provision-aws-with-terraform.md @@ -278,8 +278,22 @@ workerPool="#{Project.Octopus.Server.WorkerPool}" machinePolicy="#{Project.Octopus.Server.MachinePolicy}" space="#{Project.Octopus.Server.Space}" -sudo apt-key adv --fetch-keys "https://apt.octopus.com/public.key" -sudo add-apt-repository "deb https://apt.octopus.com/ stretch main" +apt-get update && apt-get install --no-install-recommends gnupg curl ca-certificates apt-transport-https && \ + install -m 0755 -d /etc/apt/keyrings + +curl -fsSL https://apt.octopus.com/public.key | sudo gpg --dearmor -o /etc/apt/keyrings/octopus.gpg + +chmod a+r /etc/apt/keyrings/octopus.gpg + +echo \ + "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/octopus.gpg] https://apt.octopus.com/ \ + stable main" | \ + tee /etc/apt/sources.list.d/octopus.list > /dev/null + +# for legacy Ubuntu (< 18.04) use +# apt-key adv --fetch-keys https://apt.octopus.com/public.key +# add-apt-repository "deb https://apt.octopus.com/ stable main" + sudo apt-get update sudo apt-get install tentacle From a0dc3668c06ec41ac3c8e92d347e86a3579748e3 Mon Sep 17 00:00:00 2001 From: Britton Riggs <104870596+briggs-octo@users.noreply.github.com> Date: Tue, 9 Jan 2024 17:05:57 -0700 Subject: [PATCH 05/11] Updating legacy command to use stable --- src/shared-content/infrastructure/quickstart-debian.include.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared-content/infrastructure/quickstart-debian.include.md b/src/shared-content/infrastructure/quickstart-debian.include.md index 3ef922a2ce..3e8557a290 100644 --- a/src/shared-content/infrastructure/quickstart-debian.include.md +++ b/src/shared-content/infrastructure/quickstart-debian.include.md @@ -28,7 +28,7 @@ echo \ # for legacy Ubuntu (< 18.04) use # apt-key adv --fetch-keys https://apt.octopus.com/public.key -# add-apt-repository "deb https://apt.octopus.com/ stretch main" +# add-apt-repository "deb https://apt.octopus.com/ stable main" apt-get update apt-get install tentacle From e21a364a20546cb4bc0d6131443e8a33186455b2 Mon Sep 17 00:00:00 2001 From: Britton Riggs <104870596+briggs-octo@users.noreply.github.com> Date: Tue, 9 Jan 2024 17:07:19 -0700 Subject: [PATCH 06/11] Updating legacy command to stable --- .../infrastructure/deployment-targets/tentacle/linux/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/docs/infrastructure/deployment-targets/tentacle/linux/index.mdx b/src/pages/docs/infrastructure/deployment-targets/tentacle/linux/index.mdx index c77481734b..7200be08c6 100644 --- a/src/pages/docs/infrastructure/deployment-targets/tentacle/linux/index.mdx +++ b/src/pages/docs/infrastructure/deployment-targets/tentacle/linux/index.mdx @@ -75,7 +75,7 @@ echo \ # for legacy Ubuntu (< 18.04) use # apt-key adv --fetch-keys https://apt.octopus.com/public.key -# add-apt-repository "deb https://apt.octopus.com/ stretch main" +# add-apt-repository "deb https://apt.octopus.com/ stable main" # for Raspbian use # sh -c "echo 'deb https://apt.octopus.com/ buster main' >> /etc/apt/sources.list" From c27850755c4f52822ca04b93f2e664157e9ec29a Mon Sep 17 00:00:00 2001 From: Steve Fenton <99181436+steve-fenton-octopus@users.noreply.github.com> Date: Wed, 10 Jan 2024 09:56:15 +0000 Subject: [PATCH 07/11] Spelling adjustments --- dictionary-octopus.txt | 7 +++ .../terraform/provision-aws-with-terraform.md | 60 +++++++++---------- 2 files changed, 37 insertions(+), 30 deletions(-) diff --git a/dictionary-octopus.txt b/dictionary-octopus.txt index 8cbd56726e..035f3482fe 100644 --- a/dictionary-octopus.txt +++ b/dictionary-octopus.txt @@ -1,3 +1,4 @@ +ALLUSERSPROFILE apikey approot appsettings @@ -10,7 +11,9 @@ bootstrap bootstrapped bootstrapper childelement +choco cicd +classiclink cloudapi Cloudsmith Cmdn @@ -18,6 +21,7 @@ combinational comms COMPUTERNAME Conjur +cooldown createartifact creds cscfg @@ -27,6 +31,7 @@ Datacenter datetime deallocate deallocated +dearmor deployers deploymentannotation deploymentprocess @@ -46,6 +51,7 @@ groff healthcheck HKEY HKLM +hostnames hotfix hotfixes HSTS @@ -59,6 +65,7 @@ Istio istioctl ITSM jwks +keyrings Kubelet kustomization kustomize diff --git a/src/pages/docs/runbooks/runbook-examples/terraform/provision-aws-with-terraform.md b/src/pages/docs/runbooks/runbook-examples/terraform/provision-aws-with-terraform.md index 1bfd3fa312..dce66719ae 100644 --- a/src/pages/docs/runbooks/runbook-examples/terraform/provision-aws-with-terraform.md +++ b/src/pages/docs/runbooks/runbook-examples/terraform/provision-aws-with-terraform.md @@ -11,7 +11,7 @@ AWS CloudFormation is a great tool to use to provisions resources, however, it d The following example will use Terraform to dynamically create worker machines based on auto-scaling rules. Instead of defining the Terraform template directly in the step template, this example will make use of a package. The package will consist of the following files: - autoscaling.tf -- autoscalingpolicy.tf +- autoscaling-policy.tf - backend.tf - installTentacle.sh - provider.tf @@ -30,24 +30,24 @@ This file contains the definitions for creating the auto-scaling configuration i

``` -resource "aws_launch_configuration" "dynamic-linux-worker-launchconfig" { - name_prefix = "dynamic-linux-worker-launchconfig" +resource "aws_launch_configuration" "dynamic-linux-worker-launch-config" { + name_prefix = "dynamic-linux-worker-launch-config" image_id = "${var.LINUX_AMIS}" instance_type = "t2.micro" - security_groups = ["${aws_security_group.allow-octopusserver.id}"] + security_groups = ["${aws_security_group.allow-octopus-server.id}"] # script to run when created user_data = "${file("installTentacle.sh")}" } -resource "aws_launch_configuration" "dynamic-windows-worker-launchconfig" { - name_prefix = "dynamic-windows-worker-launchconfig" +resource "aws_launch_configuration" "dynamic-windows-worker-launch-config" { + name_prefix = "dynamic-windows-worker-launch-config" image_id = "${var.WINDOWS_AMIS}" instance_type = "t2.micro" - security_groups = ["${aws_security_group.allow-octopusserver.id}"] + security_groups = ["${aws_security_group.allow-octopus-server.id}"] user_data = <<-EOT