# HG changeset patch
# User Balasankar 'Balu' C <balasankar@gitlab.com>
# Date 1741343850 -19800
#      Fri Mar 07 16:07:30 2025 +0530
# Node ID 03393a58a38ebc4474e450bf96bbe73fbdabab0e
# Parent  0a6255ae72a4fd9c01ca7f3efee586b90862e25b
Increase the root disk size of packer builder VMs

The Ubuntu 24.04 AMI's default disk size is not big enough to unpack a
GItLab package. So we specify a bigger disk.

Signed-off-by: Balasankar 'Balu' C <balasankar@gitlab.com>

diff --git a/support/packer/ce-arm64.pkr.hcl b/support/packer/ce-arm64.pkr.hcl
--- a/support/packer/ce-arm64.pkr.hcl
+++ b/support/packer/ce-arm64.pkr.hcl
@@ -104,6 +104,12 @@
   ami_users       = ["684062674729", "679593333241"]
   ena_support     = true
   instance_type   = "m6g.medium"
+  launch_block_device_mappings {
+    device_name = "/dev/sda1"
+    volume_size = 20
+    volume_type = "gp2"
+    delete_on_termination = true
+  }
   region          = "us-east-1"
   secret_key      = "${var.aws_secret_key}"
   snapshot_users  = ["684062674729", "679593333241"]
diff --git a/support/packer/ce.pkr.hcl b/support/packer/ce.pkr.hcl
--- a/support/packer/ce.pkr.hcl
+++ b/support/packer/ce.pkr.hcl
@@ -104,6 +104,12 @@
   ami_users       = ["684062674729", "679593333241"]
   ena_support     = true
   instance_type   = "m3.medium"
+  launch_block_device_mappings {
+    device_name = "/dev/sda1"
+    volume_size = 20
+    volume_type = "gp2"
+    delete_on_termination = true
+  }
   region          = "us-east-1"
   secret_key      = "${var.aws_secret_key}"
   snapshot_users  = ["684062674729", "679593333241"]
diff --git a/support/packer/ee-arm64.pkr.hcl b/support/packer/ee-arm64.pkr.hcl
--- a/support/packer/ee-arm64.pkr.hcl
+++ b/support/packer/ee-arm64.pkr.hcl
@@ -101,6 +101,12 @@
   ami_users       = ["684062674729", "679593333241"]
   ena_support     = true
   instance_type   = "m6g.medium"
+  launch_block_device_mappings {
+    device_name = "/dev/sda1"
+    volume_size = 20
+    volume_type = "gp2"
+    delete_on_termination = true
+  }
   region          = "us-east-1"
   secret_key      = "${var.aws_secret_key}"
   snapshot_users  = ["684062674729", "679593333241"]
diff --git a/support/packer/ee-premium.pkr.hcl b/support/packer/ee-premium.pkr.hcl
--- a/support/packer/ee-premium.pkr.hcl
+++ b/support/packer/ee-premium.pkr.hcl
@@ -100,6 +100,12 @@
   ami_users       = ["684062674729", "679593333241"]
   ena_support     = true
   instance_type   = "m3.medium"
+  launch_block_device_mappings {
+    device_name = "/dev/sda1"
+    volume_size = 20
+    volume_type = "gp2"
+    delete_on_termination = true
+  }
   region          = "us-east-1"
   secret_key      = "${var.aws_secret_key}"
   snapshot_users  = ["684062674729", "679593333241"]
diff --git a/support/packer/ee-ultimate.pkr.hcl b/support/packer/ee-ultimate.pkr.hcl
--- a/support/packer/ee-ultimate.pkr.hcl
+++ b/support/packer/ee-ultimate.pkr.hcl
@@ -100,6 +100,12 @@
   ami_users       = ["684062674729", "679593333241"]
   ena_support     = true
   instance_type   = "m3.medium"
+  launch_block_device_mappings {
+    device_name = "/dev/sda1"
+    volume_size = 20
+    volume_type = "gp2"
+    delete_on_termination = true
+  }
   region          = "us-east-1"
   secret_key      = "${var.aws_secret_key}"
   snapshot_users  = ["684062674729", "679593333241"]
diff --git a/support/packer/ee.pkr.hcl b/support/packer/ee.pkr.hcl
--- a/support/packer/ee.pkr.hcl
+++ b/support/packer/ee.pkr.hcl
@@ -101,6 +101,12 @@
   ami_users       = ["684062674729", "679593333241"]
   ena_support     = true
   instance_type   = "m3.medium"
+  launch_block_device_mappings {
+    device_name = "/dev/sda1"
+    volume_size = 20
+    volume_type = "gp2"
+    delete_on_termination = true
+  }
   region          = "us-east-1"
   secret_key      = "${var.aws_secret_key}"
   snapshot_users  = ["684062674729", "679593333241"]