Reputation: 570
Is there a way to set the image name in the provisioner?
Right now I am using the chef-solo provisioner. I want to create different images with different names using different cookbooks.
My solution so far is to just create 2 separate packer config json files. But was wondering if there's a way to have a single config file.
Upvotes: 0
Views: 449
Reputation: 4288
It's not possible to set the image name from the provisioner.
You could however pass in a user variable which selects the role you run in your provisioner and which is used in the image name.
Upvotes: 1