fix(infra): New AWS images 11/42111/2
authorPeter Mikus <[email protected]>
Thu, 9 Jan 2025 06:13:09 +0000 (07:13 +0100)
committerPeter Mikus <[email protected]>
Thu, 9 Jan 2025 06:20:20 +0000 (06:20 +0000)
Signed-off-by: Peter Mikus <[email protected]>
Change-Id: I8dc62881c196a268f4e13bb77ffe24735c8fcc36

fdio.infra.ansible/roles/aws/tasks/main.yaml
fdio.infra.ansible/roles/docker_images/tasks/main.yaml
fdio.infra.terraform/terraform-aws-1n-aws-c5n/variables.tf
fdio.infra.terraform/terraform-aws-1n-c6in/variables.tf
fdio.infra.terraform/terraform-aws-2n-aws-c5n/variables.tf
fdio.infra.terraform/terraform-aws-2n-c6in/variables.tf
fdio.infra.terraform/terraform-aws-2n-c7gn/variables.tf
fdio.infra/packer-aws-sut/ubuntu_noble_x86.pkr.hcl

index 750bf9f..47b8c10 100644 (file)
 
 - name: "Add User"
   ansible.builtin.user:
-    createhome: "yes"
-    groups: "adm,sudo"
+    append: true
+    createhome: true
+    groups: "admin,adm,sudo"
     name: "testuser"
     password: "$6$Y62lhMGJD8YNzmJn$H4DSqjrwFp5WN3tOvIrF.g/G2duOV76zXHAmaA/RU8jfT8H8sDumLQe/Q.EmI5pjPv7dzgI8j9BQPWes7efBK0"
     shell: "/bin/bash"
index 382c70b..e6171a2 100644 (file)
@@ -1,12 +1,12 @@
 ---
 # file: tasks/main.yaml
 
-- name: "Build Base Docker Images"
-  import_tasks: "base.yaml"
-  when: >
-    inventory_hostname in groups["sut"]
-  tags:
-    - docker-base
+#- name: "Build Base Docker Images"
+#  import_tasks: "base.yaml"
+#  when: >
+#    inventory_hostname in groups["sut"]
+#  tags:
+#    - docker-base
 
 - name: "Docker Orchestration for TG"
   import_tasks: "tg.yaml"
index c165d52..5016b93 100644 (file)
@@ -38,7 +38,7 @@ variable "placement_group_strategy" {
 variable "tg_ami" {
   description = "AMI to use for the instance."
   type        = string
-  default     = "ami-05fc62a89ea9fdae4"
+  default     = "ami-0c18f927fc6ac6c52"
 }
 
 variable "tg_associate_public_ip_address" {
index 4af15ed..f9cd5bc 100644 (file)
@@ -38,7 +38,7 @@ variable "placement_group_strategy" {
 variable "tg_ami" {
   description = "AMI to use for the instance."
   type        = string
-  default     = "ami-05fc62a89ea9fdae4"
+  default     = "ami-0c18f927fc6ac6c52"
 }
 
 variable "tg_associate_public_ip_address" {
index 9a2b040..0962997 100644 (file)
@@ -38,7 +38,7 @@ variable "placement_group_strategy" {
 variable "tg_ami" {
   description = "AMI to use for the instance."
   type        = string
-  default     = "ami-05fc62a89ea9fdae4"
+  default     = "ami-0c18f927fc6ac6c52"
 }
 
 variable "tg_associate_public_ip_address" {
@@ -74,7 +74,7 @@ variable "tg_source_dest_check" {
 variable "sut1_ami" {
   description = "AMI to use for the instance."
   type        = string
-  default     = "ami-04de4ffdd0dfa22e8"
+  default     = "ami-0269b92e0a5932902"
 }
 
 variable "sut1_associate_public_ip_address" {
index a845079..9f14b5b 100644 (file)
@@ -50,7 +50,7 @@ variable "placement_group_strategy" {
 variable "tg_ami" {
   description = "AMI to use for the instance."
   type        = string
-  default     = "ami-05fc62a89ea9fdae4"
+  default     = "ami-0c18f927fc6ac6c52"
 }
 
 variable "tg_associate_public_ip_address" {
@@ -86,7 +86,7 @@ variable "tg_source_dest_check" {
 variable "sut1_ami" {
   description = "AMI to use for the instance."
   type        = string
-  default     = "ami-04de4ffdd0dfa22e8"
+  default     = "ami-0269b92e0a5932902"
 }
 
 variable "sut1_associate_public_ip_address" {
index 2e6d58b..1bdb701 100644 (file)
@@ -38,7 +38,7 @@ variable "placement_group_strategy" {
 variable "tg_ami" {
   description = "AMI to use for the instance."
   type        = string
-  default     = "ami-05fc62a89ea9fdae4"
+  default     = "ami-0c18f927fc6ac6c52"
 }
 
 variable "tg_associate_public_ip_address" {
index 1b925e0..93e6d08 100644 (file)
@@ -83,28 +83,28 @@ source "amazon-ebs" "csit_ubuntu_noble_x86_tg" {
   ssh_timeout      = "30m"
 }
 
-build {
-  name = "csit_ubuntu_noble_x86_sut-packer"
-  sources = [
-    "source.amazon-ebs.csit_ubuntu_noble_x86_sut"
-  ]
-  provisioner "shell" {
-    inline = var.first_run_commands
-  }
-  provisioner "ansible" {
-    playbook_file = var.ansible_file_path
-    user          = "ubuntu"
-    use_proxy     = false
-    groups        = ["sut_aws"]
-    extra_arguments = [
-      "--extra-vars", "ansible_ssh_pass=${var.ansible_provision_pwd}",
-      "--extra-vars", "aws=true"
-    ]
-  }
-  provisioner "shell" {
-    inline = var.last_run_commands
-  }
-}
+#build {
+#  name = "csit_ubuntu_noble_x86_sut-packer"
+#  sources = [
+#    "source.amazon-ebs.csit_ubuntu_noble_x86_sut"
+#  ]
+#  provisioner "shell" {
+#    inline = var.first_run_commands
+#  }
+#  provisioner "ansible" {
+#    playbook_file = var.ansible_file_path
+#    user          = "ubuntu"
+#    use_proxy     = false
+#    groups        = ["sut_aws"]
+#    extra_arguments = [
+#      "--extra-vars", "ansible_ssh_pass=${var.ansible_provision_pwd}",
+#      "--extra-vars", "aws=true"
+#    ]
+#  }
+#  provisioner "shell" {
+#    inline = var.last_run_commands
+#  }
+#}
 
 build {
   name = "csit_ubuntu_noble_x86_tg-packer"