How to create a environment variable from one provision to be used in the next provision

13 views
Skip to first unread message

Ibrahim Buamod

unread,
Jan 15, 2019, 1:19:26 PM1/15/19
to Packer
How to create a environment variable from one provision to be used in the next provision?

Is there a packer way ? I would prefer using packer instead a environment variable ? 


Megan Marsh

unread,
Jan 15, 2019, 1:51:33 PM1/15/19
to packe...@googlegroups.com
There isn't a way to handle this from within packer. Depending on what provisioners you are using you may be able to write the variable to a file that can be read by the next provisioner.

Ibrahim Buamod

unread,
Jan 15, 2019, 2:01:00 PM1/15/19
to Packer
Thanks super Megan
Reply all
Reply to author
Forward
0 new messages