Reputation: 8137
I have two builders in packer template - "azure-arm" and "amazon-ebs",
Is it possible to have dedicated provisioner for each builder?
Upvotes: 0
Views: 154
Reputation: 4288
You can use the only
and except
options in a provisioner section to control for which builders it gets executed.
Example:
{
"type": "shell",
"script": "script.sh",
"only": ["virtualbox-iso"]
}
Upvotes: 2