one way would be using consul template to create a var-file, then a shell
script run all in order

populate file from template
run packer
delete generated var files


Alvaro.

On Wed, May 9, 2018 at 11:22 AM, Lukas Mrtvy <[email protected]> wrote:

> How should I provision sercrets and variables for
> https://www.packer.io/docs/post-processors/vsphere-template.html from
> Consul/Vault in Packer?
> Run bash script to get variables/secrets -> save to file -> packer
> -var-file my-secrets?
> Well for example: credentials to vcenter are pretty sensitive to store it
> in plaintext in file
> Thanks
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/81d0798d-be41-4880-8cd7-1b3a0ce4aeb0%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/81d0798d-be41-4880-8cd7-1b3a0ce4aeb0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Alvaro

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAHqq0eyj8GAZsWNRZeGaVsNf%2BhPQ4qhSR1np3%3DHAsQoipGNdag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to