You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
We cannot for example reference ssh_username in an ansible plugin provisioner which means we repeat ourselves.
It is also not possible to define extra source variables unless the plugin uses them. This would be very helpful. Currently the documentation leads us to believe that these things are currently possible, but they are not.
Use Case(s)
To be able to reuse code without repe
Potential configuration
Potential References
The text was updated successfully, but these errors were encountered:
Community Note
Description
These docs suggest that you can access variables defined on sources later in build blocks.
https://developer.hashicorp.com/packer/docs/templates/hcl_templates/blocks/source
But from all the examples in this discussion thread it appears you cannot do this with the amazon-ebs plugin.
https://discuss.hashicorp.com/t/packer-source-blocks-unable-to-validate-in-packer-1-11-2/71853/9
We cannot for example reference ssh_username in an ansible plugin provisioner which means we repeat ourselves.
It is also not possible to define extra source variables unless the plugin uses them. This would be very helpful. Currently the documentation leads us to believe that these things are currently possible, but they are not.
Use Case(s)
To be able to reuse code without repe
Potential configuration
Potential References
The text was updated successfully, but these errors were encountered: