[packer] Packer Azure ARM, Stuck on Waiting for WinRM to become available Windows 2012 R2 Imgae

2017-04-12 Thread peter . short
Hi, I am quite a newbie to Packer, but learnt a lot last few days and got packer sorted for AWS 2012 R2 build, but having issue with Azure. with Jenkins / Packer it creates the VM and then gets stuck at Waiting for WinRM to become available, before doing provisioning and then times outs, VM on

Re: [packer] Have certain packer stages always run even on failure earlier in build.

2017-04-12 Thread Rickard von Essen
There is no direct support for this if you need it to span multiple provisioners. I would sugest that you write some metadata to a file and use the file provisioner to download it and wrap your packer run in a script that uses that to unregister the subscription after packer has completed regardle

[packer] Have certain packer stages always run even on failure earlier in build.

2017-04-12 Thread James Bailey
Hello, I trying to find a way a stage will always run even on failure. We are building RHEL7 instances in packer. At the beginning of the run we run subscription manager to register and add repos at the end of the run we deregister the instance. This works well on a successful build but if any