Re: [packer] Question about Packer variables passed via JSON

2017-05-17 Thread Rickard von Essen
And you can use process substitution: packer build -var-fil=<(var_fn) template.json See http://www.tldp.org/LDP/abs/html/process-sub.html / Rickard On May 17, 2017 10:53 PM, "Matthew Hooker" wrote: > Hi Andrew, > > Glad to hear our tools are working out for you. > > We don't allow you to pass

Re: [packer] Question about Packer variables passed via JSON

2017-05-17 Thread Matthew Hooker
Hi Andrew, Glad to hear our tools are working out for you. We don't allow you to pass an entire varfile in from the command line, but you can use -var to pass each variable. For example, you could generate a long list of `-var 'x=y' -var 'a=b'` etc and pass that in. Hopefully that works for you.

[packer] Question about Packer variables passed via JSON

2017-05-17 Thread andrew . doyle
I've been using Packer in the context of a Jenkinsfile (using the Pipeline plugin for Jenkins) with success. The only problem is the need to write a JSON file to the local file system that can be passed to Packer. Is there any sort of functionality that would allow me to execute Packer from a