Skip to content

Commit

Permalink
remove arm-patch
Browse files Browse the repository at this point in the history
  • Loading branch information
ndench committed Jan 15, 2022
1 parent 7cbea8f commit 639c46e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions modules/runners/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ locals {
instance_profile_path = var.instance_profile_path == null ? "/${var.environment}/" : var.instance_profile_path
lambda_zip = var.lambda_zip == null ? "${path.module}/lambdas/runners/runners.zip" : var.lambda_zip
userdata_template = var.userdata_template == null ? local.default_userdata_template[var.runner_os] : var.userdata_template
userdata_arm_patch = "${path.module}/templates/arm-runner-patch.tpl"
kms_key_arn = var.kms_key_arn != null ? var.kms_key_arn : ""

default_ami = {
Expand Down Expand Up @@ -119,7 +118,6 @@ resource "aws_launch_template" "runner" {
pre_install = var.userdata_pre_install
install_runner = templatefile(local.userdata_install_runner[var.runner_os], {
S3_LOCATION_RUNNER_DISTRIBUTION = var.s3_location_runner_binaries
ARM_PATCH = var.runner_architecture == "arm64" ? templatefile(local.userdata_arm_patch, {}) : ""
})
post_install = var.userdata_post_install
start_runner = templatefile(local.userdata_start_runner[var.runner_os], {})
Expand Down
1 change: 0 additions & 1 deletion modules/runners/templates/arm-runner-patch.tpl

This file was deleted.

2 changes: 0 additions & 2 deletions modules/runners/templates/install-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ tar xzf ./$file_name
echo "Delete tar file"
rm -rf $file_name

${ARM_PATCH}

os_id=$(awk -F= '/^ID/{print $2}' /etc/os-release)
if [[ "$os_id" =~ ^ubuntu.* ]]; then
echo "Installing dependencies"
Expand Down

0 comments on commit 639c46e

Please sign in to comment.