diff options
Diffstat (limited to 'flavor.pkr.hcl')
-rw-r--r-- | flavor.pkr.hcl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/flavor.pkr.hcl b/flavor.pkr.hcl new file mode 100644 index 0000000..974bf32 --- /dev/null +++ b/flavor.pkr.hcl @@ -0,0 +1,28 @@ +# A build block invokes sources and runs provisioning steps on them. +# The documentation for build blocks can be found here: +# https://www.packer.io/docs/templates/hcl_templates/blocks/build + +// packer { +// required_plugins { +// qemu = { +// source = "github.com/hashicorp/qemu" +// version = "~> 1" +// } +// ansible = { +// source = "github.com/hashicorp/ansible" +// version = "~> 1" +// } +// } +// } + +build { + name = "flavor" + sources = ["source.qemu.ansible"] + + provisioner "ansible" { + extra_arguments = ["--ssh-extra-args", "-o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa", "--scp-extra-args", "\"-O\""] + playbook_file = "${var.playbook_file}" + sftp_command = "/usr/libexec/openssh/sftp-server" + use_sftp = false + } +} |