[packer] Using environ variables in packer json file

2018-09-05 Thread ksachdev1
I have a provisioners section that has a following snippet { "type":"file", "source":"my-init.sh", "destination":"/root/myuser/run/my-init.sh" }, The source value may not always be in same directory where I am running the packer build from. For example my packer.json might b

Re: [packer] Using environ variables in packer json file

2018-09-05 Thread Rickard von Essen
See https://www.packer.io/docs/templates/user-variables.html#using-home-variable On Thu, Sep 6, 2018, 06:04 wrote: > I have a provisioners section that has a following snippet > { > "type":"file", > "source":"my-init.sh", > "destination":"/root/myuser/run/my-init.sh" > }, >