From c1c75eaaba3d25309315ac27c8aa11b4d7834151 Mon Sep 17 00:00:00 2001 From: pmikus Date: Fri, 14 Jul 2023 12:56:32 +0000 Subject: fix(packer): Naming Signed-off-by: pmikus Change-Id: I7c9ee9887b86ec1a0ef2dfa6d2f6fbce39fd2a04 --- fdio.infra/packer-aws-sut/ubuntu_jammy_arm.pkr.hcl | 44 +++++++++++----------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/fdio.infra/packer-aws-sut/ubuntu_jammy_arm.pkr.hcl b/fdio.infra/packer-aws-sut/ubuntu_jammy_arm.pkr.hcl index e46814c1c5..6a81b70e56 100644 --- a/fdio.infra/packer-aws-sut/ubuntu_jammy_arm.pkr.hcl +++ b/fdio.infra/packer-aws-sut/ubuntu_jammy_arm.pkr.hcl @@ -81,28 +81,28 @@ source "amazon-ebs" "csit_ubuntu_jammy_arm_tg" { ssh_username = "ubuntu" } -#build { -# name = "csit_ubuntu_jammy_arm_sut-packer" -# sources = [ -# "source.amazon-ebs.csit_ubuntu_jammy_arm_sut" -# ] -# provisioner "shell" { -# inline = var.first_run_commands -# } -# provisioner "ansible" { -# playbook_file = var.ansible_file_path -# user = "ubuntu" -# groups = ["sut_aws"] -# extra_arguments = [ -# "--extra-vars", "ansible_ssh_pass=${var.ansible_provision_pwd}", -# "--extra-vars", "ansible_python_interpreter=${var.ansible_python_executable}", -# "--extra-vars", "aws=true" -# ] -# } -# provisioner "shell" { -# inline = var.last_run_commands -# } -#} +build { + name = "csit_ubuntu_jammy_arm_sut-packer" + sources = [ + "source.amazon-ebs.csit_ubuntu_jammy_arm_sut" + ] + provisioner "shell" { + inline = var.first_run_commands + } + provisioner "ansible" { + playbook_file = var.ansible_file_path + user = "ubuntu" + groups = ["sut_aws"] + extra_arguments = [ + "--extra-vars", "ansible_ssh_pass=${var.ansible_provision_pwd}", + "--extra-vars", "ansible_python_interpreter=${var.ansible_python_executable}", + "--extra-vars", "aws=true" + ] + } + provisioner "shell" { + inline = var.last_run_commands + } +} build { name = "csit_ubuntu_jammy_arm_tg-packer" -- cgit 1.2.3-korg