There is no way to do that currently without preprocessing. Doing it with
something like jq would be fairly easy.

On Fri, Sep 6, 2019, 19:40 Markku Nikkanen <markku.nikka...@gmail.com>
wrote:

> Hello,
>
> I use same keys in tags and run_tags options:
>
> "builders": [
>     {
>       "tags": {
>           <same keys>
>       },
>       "run_tags": {
>           <same keys>
>       }
>
> How one can define tags once and reuse those in tags and run_tags options?
> Following did not work:
>
> "variables": {
>     "reusable_tags": {
>         <keys>
>     }
> ...
> "builders": [
>     {
>       "tags": "{{user `reusable_tags `}}",
>       "run_tags": "{{user `reusable_tags `}}"
> ...
>
> Best regards,
> Markku
>
> --
> 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 packer-tool+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/686c0408-d437-4599-bab4-8f06f826d54f%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/686c0408-d437-4599-bab4-8f06f826d54f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 packer-tool+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt-z5xruOKU1iUX-edVsEY-g%3DskCZnNCsOnFJq7NKy%3D2QQ%40mail.gmail.com.

Reply via email to