aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j26
-rw-r--r--fdio.infra.terraform/terraform-aws-1n-aws-c5n/topology-1n-aws-c5n.tftpl2
-rw-r--r--fdio.infra.terraform/terraform-aws-1n-aws-c5n/variables.tf2
-rw-r--r--fdio.infra.terraform/terraform-aws-1n-c6in/topology-1n-c6in.tftpl2
-rw-r--r--fdio.infra.terraform/terraform-aws-1n-c6in/variables.tf2
-rw-r--r--fdio.infra.terraform/terraform-aws-2n-aws-c5n/topology-2n-aws-c5n.tftpl2
-rw-r--r--fdio.infra.terraform/terraform-aws-2n-aws-c5n/variables.tf2
-rw-r--r--fdio.infra.terraform/terraform-aws-2n-c6in/topology-2n-c6in.tftpl2
-rw-r--r--fdio.infra.terraform/terraform-aws-2n-c6in/variables.tf2
-rw-r--r--fdio.infra.terraform/terraform-aws-2n-c7gn/topology-2n-c7gn.tftpl2
-rw-r--r--fdio.infra.terraform/terraform-aws-2n-c7gn/variables.tf2
-rw-r--r--fdio.infra/packer-aws-sut/ubuntu_noble_x86.pkr.hcl81
12 files changed, 57 insertions, 50 deletions
diff --git a/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2 b/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2
index c73e34a006..c4d53c90c2 100644
--- a/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2
+++ b/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2
@@ -17,12 +17,14 @@ services:
privileged: true
restart: "always"
shm_size: "4G"
+{% if docker_volumes is defined and docker_volumes|length > 0 %}
volumes:
{% for volume in docker_volumes %}
- type: "bind"
source: "{{ volume.source }}"
target: "{{ volume.target }}"
{% endfor %}
+{% endif %}
tg-1:
build:
context: "tg/"
@@ -41,9 +43,11 @@ services:
privileged: true
restart: "always"
shm_size: "4G"
+{% if docker_volumes is defined and docker_volumes|length > 0 %}
volumes:
{% for volume in docker_volumes %}
- type: "bind"
source: "{{ volume.source }}"
target: "{{ volume.target }}"
-{% endfor %} \ No newline at end of file
+{% endfor %}
+{% endif %} \ No newline at end of file
diff --git a/fdio.infra.terraform/terraform-aws-1n-aws-c5n/topology-1n-aws-c5n.tftpl b/fdio.infra.terraform/terraform-aws-1n-aws-c5n/topology-1n-aws-c5n.tftpl
index c99d1f5ebc..9233b7852b 100644
--- a/fdio.infra.terraform/terraform-aws-1n-aws-c5n/topology-1n-aws-c5n.tftpl
+++ b/fdio.infra.terraform/terraform-aws-1n-aws-c5n/topology-1n-aws-c5n.tftpl
@@ -12,7 +12,7 @@ nodes:
subtype: TREX
host: "${tg_public_ip}"
arch: x86_64
- port: 22
+ port: 6001
username: testuser
password: Csit1234
interfaces:
diff --git a/fdio.infra.terraform/terraform-aws-1n-aws-c5n/variables.tf b/fdio.infra.terraform/terraform-aws-1n-aws-c5n/variables.tf
index 24e767e823..a7e858a054 100644
--- a/fdio.infra.terraform/terraform-aws-1n-aws-c5n/variables.tf
+++ b/fdio.infra.terraform/terraform-aws-1n-aws-c5n/variables.tf
@@ -38,7 +38,7 @@ variable "placement_group_strategy" {
variable "tg_ami" {
description = "AMI to use for the instance."
type = string
- default = "ami-00ff6ec6a76b31665"
+ default = "ami-09bee32179b4bf6bf"
}
variable "tg_associate_public_ip_address" {
diff --git a/fdio.infra.terraform/terraform-aws-1n-c6in/topology-1n-c6in.tftpl b/fdio.infra.terraform/terraform-aws-1n-c6in/topology-1n-c6in.tftpl
index dc24577bbd..148be5c077 100644
--- a/fdio.infra.terraform/terraform-aws-1n-c6in/topology-1n-c6in.tftpl
+++ b/fdio.infra.terraform/terraform-aws-1n-c6in/topology-1n-c6in.tftpl
@@ -12,7 +12,7 @@ nodes:
subtype: TREX
host: "${tg_public_ip}"
arch: x86_64
- port: 22
+ port: 6001
username: testuser
password: Csit1234
interfaces:
diff --git a/fdio.infra.terraform/terraform-aws-1n-c6in/variables.tf b/fdio.infra.terraform/terraform-aws-1n-c6in/variables.tf
index b14718f6e9..2d21734a1f 100644
--- a/fdio.infra.terraform/terraform-aws-1n-c6in/variables.tf
+++ b/fdio.infra.terraform/terraform-aws-1n-c6in/variables.tf
@@ -38,7 +38,7 @@ variable "placement_group_strategy" {
variable "tg_ami" {
description = "AMI to use for the instance."
type = string
- default = "ami-00ff6ec6a76b31665"
+ default = "ami-09bee32179b4bf6bf"
}
variable "tg_associate_public_ip_address" {
diff --git a/fdio.infra.terraform/terraform-aws-2n-aws-c5n/topology-2n-aws-c5n.tftpl b/fdio.infra.terraform/terraform-aws-2n-aws-c5n/topology-2n-aws-c5n.tftpl
index 313b4b3d86..ccd40d5f95 100644
--- a/fdio.infra.terraform/terraform-aws-2n-aws-c5n/topology-2n-aws-c5n.tftpl
+++ b/fdio.infra.terraform/terraform-aws-2n-aws-c5n/topology-2n-aws-c5n.tftpl
@@ -12,7 +12,7 @@ nodes:
subtype: TREX
host: "${tg_public_ip}"
arch: x86_64
- port: 22
+ port: 6001
username: testuser
password: Csit1234
interfaces:
diff --git a/fdio.infra.terraform/terraform-aws-2n-aws-c5n/variables.tf b/fdio.infra.terraform/terraform-aws-2n-aws-c5n/variables.tf
index 30c6f0df6c..aa51e522bc 100644
--- a/fdio.infra.terraform/terraform-aws-2n-aws-c5n/variables.tf
+++ b/fdio.infra.terraform/terraform-aws-2n-aws-c5n/variables.tf
@@ -38,7 +38,7 @@ variable "placement_group_strategy" {
variable "tg_ami" {
description = "AMI to use for the instance."
type = string
- default = "ami-00ff6ec6a76b31665"
+ default = "ami-09bee32179b4bf6bf"
}
variable "tg_associate_public_ip_address" {
diff --git a/fdio.infra.terraform/terraform-aws-2n-c6in/topology-2n-c6in.tftpl b/fdio.infra.terraform/terraform-aws-2n-c6in/topology-2n-c6in.tftpl
index d012d335b6..c5d1d0cdae 100644
--- a/fdio.infra.terraform/terraform-aws-2n-c6in/topology-2n-c6in.tftpl
+++ b/fdio.infra.terraform/terraform-aws-2n-c6in/topology-2n-c6in.tftpl
@@ -12,7 +12,7 @@ nodes:
subtype: TREX
host: "${tg_public_ip}"
arch: x86_64
- port: 22
+ port: 6001
username: testuser
password: Csit1234
interfaces:
diff --git a/fdio.infra.terraform/terraform-aws-2n-c6in/variables.tf b/fdio.infra.terraform/terraform-aws-2n-c6in/variables.tf
index 41dc4e63d0..7e8ca7d280 100644
--- a/fdio.infra.terraform/terraform-aws-2n-c6in/variables.tf
+++ b/fdio.infra.terraform/terraform-aws-2n-c6in/variables.tf
@@ -50,7 +50,7 @@ variable "placement_group_strategy" {
variable "tg_ami" {
description = "AMI to use for the instance."
type = string
- default = "ami-00ff6ec6a76b31665"
+ default = "ami-09bee32179b4bf6bf"
}
variable "tg_associate_public_ip_address" {
diff --git a/fdio.infra.terraform/terraform-aws-2n-c7gn/topology-2n-c7gn.tftpl b/fdio.infra.terraform/terraform-aws-2n-c7gn/topology-2n-c7gn.tftpl
index a0fa5fc191..986157dc48 100644
--- a/fdio.infra.terraform/terraform-aws-2n-c7gn/topology-2n-c7gn.tftpl
+++ b/fdio.infra.terraform/terraform-aws-2n-c7gn/topology-2n-c7gn.tftpl
@@ -12,7 +12,7 @@ nodes:
subtype: TREX
host: "${tg_public_ip}"
arch: x86_64
- port: 22
+ port: 6001
username: testuser
password: Csit1234
interfaces:
diff --git a/fdio.infra.terraform/terraform-aws-2n-c7gn/variables.tf b/fdio.infra.terraform/terraform-aws-2n-c7gn/variables.tf
index 015d6e2b06..b1505822d1 100644
--- a/fdio.infra.terraform/terraform-aws-2n-c7gn/variables.tf
+++ b/fdio.infra.terraform/terraform-aws-2n-c7gn/variables.tf
@@ -38,7 +38,7 @@ variable "placement_group_strategy" {
variable "tg_ami" {
description = "AMI to use for the instance."
type = string
- default = "ami-00ff6ec6a76b31665"
+ default = "ami-09bee32179b4bf6bf"
}
variable "tg_associate_public_ip_address" {
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 5eddfe7687..1b925e0404 100644
--- a/fdio.infra/packer-aws-sut/ubuntu_noble_x86.pkr.hcl
+++ b/fdio.infra/packer-aws-sut/ubuntu_noble_x86.pkr.hcl
@@ -47,22 +47,23 @@ variable "ansible_provision_pwd" {
default = "Csit1234"
}
-#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"
-# launch_block_device_mappings {
-# device_name = "/dev/sda1"
-# volume_size = 40
-# volume_type = "gp2"
-# }
-# force_deregister = true
-# region = "eu-central-1"
-# skip_create_ami = false
-# source_ami = "ami-0084a47cc718c111a"
-# ssh_username = "ubuntu"
-#}
+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"
+ launch_block_device_mappings {
+ device_name = "/dev/sda1"
+ volume_size = 40
+ volume_type = "gp2"
+ }
+ force_deregister = true
+ region = "eu-central-1"
+ skip_create_ami = false
+ source_ami = "ami-0084a47cc718c111a"
+ ssh_username = "ubuntu"
+ ssh_timeout = "30m"
+}
source "amazon-ebs" "csit_ubuntu_noble_x86_tg" {
ami_name = "csit_ubuntu_noble_x86_tg"
@@ -79,30 +80,31 @@ source "amazon-ebs" "csit_ubuntu_noble_x86_tg" {
skip_create_ami = false
source_ami = "ami-0084a47cc718c111a"
ssh_username = "ubuntu"
+ 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"
@@ -119,7 +121,8 @@ build {
groups = ["tg_aws"]
extra_arguments = [
"--extra-vars", "ansible_ssh_pass=${var.ansible_provision_pwd}",
- "--extra-vars", "aws=true"
+ "--extra-vars", "aws=true",
+ "--extra-vars", "docker_tg=true"
]
}
provisioner "shell" {