Re: [packer] digitalocean: Error creating temporary SSH key on packer v.0.12.2 Mac OS X 10.12.3

2017-02-25 Thread Michael Beigelmacher
Thanks, that did the trick. On Saturday, February 25, 2017 at 11:27:14 AM UTC-5, Alvaro Miranda Aguilera wrote: > > hello > > not sure what is your host os, but in bash for linux/osx the single quote > will avoid the variable expansion > > try > packer build -var "do_api_token=${DO_API_TOKEN}" e

Re: [packer] digitalocean: Error creating temporary SSH key on packer v.0.12.2 Mac OS X 10.12.3

2017-02-25 Thread Michael Beigelmacher
Thanks for pointing this out. I mistakenly assumed DO_API_TOKEN (which is used by Ansible) would suffice and didn’t realize Packer required DIGITALOCEAN_API_TOKEN instead. On Saturday, February 25, 2017 at 1:24:56 PM UTC-5, Rickard von Essen wrote: Also if you set DIGITALOCEAN_API_TOKEN packe

Re: [packer] digitalocean: Error creating temporary SSH key on packer v.0.12.2 Mac OS X 10.12.3

2017-02-25 Thread Rickard von Essen
Also if you set DIGITALOCEAN_API_TOKEN packer will use that. I.e. export DIGITALOCEAN_API_TOKEN=$DO_API_TOKEN If that doesn't work it would be good I'd you attach a log from PACKER_LOG=1 packer build template.json, just redact all sensitive information. On Feb 25, 2017 5:27 PM, "Alvaro Miranda Ag

Re: [packer] digitalocean: Error creating temporary SSH key on packer v.0.12.2 Mac OS X 10.12.3

2017-02-25 Thread Alvaro Miranda Aguilera
hello not sure what is your host os, but in bash for linux/osx the single quote will avoid the variable expansion try packer build -var "do_api_token=${DO_API_TOKEN}" example.json On Sat, Feb 25, 2017 at 5:12 PM, Michael Beigelmacher < michael.beigelmac...@gmail.com> wrote: > I’m going the tuto

[packer] digitalocean: Error creating temporary SSH key on packer v.0.12.2 Mac OS X 10.12.3

2017-02-25 Thread Michael Beigelmacher
I’m going the tutorial on Packer here about parallel builds and the build for a DigitalOcean image fails. First, packer validate example.json fails with: Template validation failed. Errors are shown below. Errors validating b