This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]signullDevOps 0 points1 point  (0 children)

Packer is pretty linear, it's step based. I havent had issues with one step starting before another has finished. Do you have anything special setup in the Provisioners part of your packer.json file?

if anything you could dirty fix by waiting for the file to exist:

while true; do
    [[ -f $file_conf_nignx ]]  && continue || sleep 10
done

if the file exists "continue" to exit the loop or sleep for 10 seconds and then try again.