We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be great to allow the args to specify the path to the pkrvars file to be used when validating the packer files
as of today the basic command with packer works : packer validate -var-file="inputs/dev.pkrvars.hcl" .
However when using the pre-commit hook validate there is no way to map with the righ pkrvars file. This would be useful because...
Please provide details for implementation, such as:
an example would be :
repos:
How do we know when this work is done?
The text was updated successfully, but these errors were encountered:
packer
Hi, I'm currently writing a few pipelines and I would like to use this pre-commit option, I'm just wondering if this is implemented @mcdonnnj ?
I will check if I can add this to the code, but it will take me a while.
Sorry, something went wrong.
As of the 0.1.0 release you should be able to do this with:
repo: https://github.com/cisagov/pre-commit-packer rev: v0.2.0 hooks: - id: packer_fmt - id: packer_validate args: - '-var-file=inputs/dev.pkrvars.hcl"'
mcdonnnj
No branches or pull requests
💡 Summary
It would be great to allow the args to specify the path to the pkrvars file to be used when validating the packer files
Motivation and context
as of today the basic command with packer works :
packer validate -var-file="inputs/dev.pkrvars.hcl" .
However when using the pre-commit hook validate there is no way to map with the righ pkrvars file.
This would be useful because...
Implementation notes
Please provide details for implementation, such as:
an example would be :
repos:
rev: v0.0.2
hooks:
args:
Acceptance criteria
How do we know when this work is done?
The text was updated successfully, but these errors were encountered: