aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra/packer-aws-sut/ubuntu_noble_x86.pkr.hcl
diff options
context:
space:
mode:
Diffstat (limited to 'fdio.infra/packer-aws-sut/ubuntu_noble_x86.pkr.hcl')
-rw-r--r--fdio.infra/packer-aws-sut/ubuntu_noble_x86.pkr.hcl23
1 files changed, 16 insertions, 7 deletions
diff --git a/fdio.infra/packer-aws-sut/ubuntu_noble_x86.pkr.hcl b/fdio.infra/packer-aws-sut/ubuntu_noble_x86.pkr.hcl
index 1b925e0404..a9e0dc7dfb 100644
--- a/fdio.infra/packer-aws-sut/ubuntu_noble_x86.pkr.hcl
+++ b/fdio.infra/packer-aws-sut/ubuntu_noble_x86.pkr.hcl
@@ -15,7 +15,7 @@ variable "first_run_commands" {
]
}
-variable "last_run_commands" {
+variable "last_run_commands_sut" {
description = "Commands to run after deployment via remote-exec"
type = list(string)
default = [
@@ -23,6 +23,15 @@ variable "last_run_commands" {
]
}
+variable "last_run_commands_tg" {
+ description = "Commands to run after deployment via remote-exec"
+ type = list(string)
+ default = [
+ "sudo sed -i 's/Unattended-Upgrade \"1\"/Unattended-Upgrade \"0\"/g' /etc/apt/apt.conf.d/20auto-upgrades",
+ "sudo systemctl start csit-initialize-docker-tg.service"
+ ]
+}
+
variable "ansible_file_path" {
description = "Path to Ansible playbook"
type = string
@@ -51,7 +60,7 @@ source "amazon-ebs" "csit_ubuntu_noble_x86_sut" {
ami_name = "csit_ubuntu_noble_x86_sut"
ami_description = "CSIT SUT image based on Ubuntu noble"
ena_support = true
- instance_type = "c5n.4xlarge"
+ instance_type = "c6in.4xlarge"
launch_block_device_mappings {
device_name = "/dev/sda1"
volume_size = 40
@@ -62,14 +71,14 @@ source "amazon-ebs" "csit_ubuntu_noble_x86_sut" {
skip_create_ami = false
source_ami = "ami-0084a47cc718c111a"
ssh_username = "ubuntu"
- ssh_timeout = "30m"
+ ssh_timeout = "60m"
}
source "amazon-ebs" "csit_ubuntu_noble_x86_tg" {
ami_name = "csit_ubuntu_noble_x86_tg"
ami_description = "CSIT TG image based on Ubuntu noble"
ena_support = true
- instance_type = "c5n.4xlarge"
+ instance_type = "c6in.4xlarge"
launch_block_device_mappings {
device_name = "/dev/sda1"
volume_size = 40
@@ -80,7 +89,7 @@ source "amazon-ebs" "csit_ubuntu_noble_x86_tg" {
skip_create_ami = false
source_ami = "ami-0084a47cc718c111a"
ssh_username = "ubuntu"
- ssh_timeout = "30m"
+ ssh_timeout = "60m"
}
build {
@@ -102,7 +111,7 @@ build {
]
}
provisioner "shell" {
- inline = var.last_run_commands
+ inline = var.last_run_commands_sut
}
}
@@ -126,6 +135,6 @@ build {
]
}
provisioner "shell" {
- inline = var.last_run_commands
+ inline = var.last_run_commands_tg
}
}