Error when trying to validate a template with a plugin

38 views
Skip to first unread message

t3e...@gmail.com

unread,
Apr 26, 2018, 7:38:12 AM4/26/18
to Packer
I am trying to a plugin for windows updates and I have the plugin in the same directory as the packer excitable - when I try to validate my JSON file I get the following error around the plugin. How the error is clear and that there is no permissions to that plugin however I am not sure if I am missing something to allow access. This is using a Mac 10.13.3 or Ubuntu. I have tried to so a sudo on the validate command but I still get the same issues. Also the location of packer and this plugin is in my $PATH.

If any one has used this plug or knows whats up I'd appreciate help

packer validate firstrun.json 

Failed to initialize build 'amazon-ebs': error initializing provisioner 'windows-update': fork/exec /home/packer/packer-provisioner-windows-update: permission denied



Thanks

Aaron Kulbe

unread,
Apr 26, 2018, 7:42:29 AM4/26/18
to Packer
I'm pretty sure your plugin binary needs to go in "~/.packer.d/plugins/"

So create that if you haven't already and put your plugin binary there.

Cheers,

Aaron Kulbe

t3e...@gmail.com

unread,
Apr 26, 2018, 8:20:31 AM4/26/18
to Packer
Thanks Aron for the reply - I tried what you suggested but that did not help.

After further investigation I managed to track down that the issue was a file permission error on that plugin and I had to give 'Other' execute permission using CHMOD.
Reply all
Reply to author
Forward
0 new messages