mirror of https://github.com/hashicorp/packer
When a legacy JSON template references built-in plugins, we add them to the resulting template as a `required_plugins' block in HCL2.pull/12516/head
parent
a2930bda4f
commit
b522edca36
@ -0,0 +1,29 @@
|
||||
packer {
|
||||
required_plugins {
|
||||
amazon = {
|
||||
source = "github.com/hashicorp/amazon"
|
||||
version = "~> 1"
|
||||
}
|
||||
ansible = {
|
||||
source = "github.com/hashicorp/ansible"
|
||||
version = "~> 1"
|
||||
}
|
||||
googlecompute = {
|
||||
source = "github.com/hashicorp/googlecompute"
|
||||
version = "~> 1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
source "amazon-ebs" "autogenerated_1" {
|
||||
}
|
||||
|
||||
build {
|
||||
sources = ["source.amazon-ebs.autogenerated_1"]
|
||||
|
||||
provisioner "ansible-local" {
|
||||
}
|
||||
|
||||
post-processor "googlecompute-import" {
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
{
|
||||
"builders": [{
|
||||
"type": "amazon-ebs"
|
||||
}],
|
||||
"provisioners": [{
|
||||
"type": "ansible-local"
|
||||
}],
|
||||
"post-processors": [{
|
||||
"type": "googlecompute-import"
|
||||
}]
|
||||
}
|
||||
Loading…
Reference in new issue