diff options
author | pmikus <peter.mikus@protonmail.ch> | 2023-07-14 12:56:32 +0000 |
---|---|---|
committer | pmikus <peter.mikus@protonmail.ch> | 2023-07-14 12:56:32 +0000 |
commit | c1c75eaaba3d25309315ac27c8aa11b4d7834151 (patch) | |
tree | ab4bd8edf4b44f16472ee2a99fe9209ee5670ac0 /fdio.infra | |
parent | f04617b817436dd45eca973c24455fb9c147b3f2 (diff) |
fix(packer): Naming
Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: I7c9ee9887b86ec1a0ef2dfa6d2f6fbce39fd2a04
Diffstat (limited to 'fdio.infra')
-rw-r--r-- | fdio.infra/packer-aws-sut/ubuntu_jammy_arm.pkr.hcl | 44 |
1 files 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" |