I have a Packer JSON that specifies multiple builders and multiple post-processors. When working on new features/fixes/changes, I can specify in the command line to have Packer use only a specific builder, but all post-processors that reference the builder are used, and there doesn't seem to be a way to control that on the command-line. As a result, the resultant template will use all post-processors which takes additional time to complete and clutters additional locations with a template that's not fully tested and ready for distribution to all locations.
Is there a way to specify a specific post-processor via the command line? A specific use case would be ...
-- Use Packer command line to specify 'only' in command line so a specific builder is used (like building to ESX)
-- Run post-processor to build the template into a specific ESX instance (like a lab), so that the template is only built in a specific location and can be tested first
I would prefer not to create duplicate builders in the JSON as they would essentially be the same (except for post-processing), and if the builder itself needs to change, all of them need to change, which could introduce issues if they're not all updated in the same way. Ideally this would be in the Packer command line so I could specify both the builder and post-processor to be used, then I can test first and ensure everything is working properly prior to running the post-processor in all locations.
Thanks.