Wait for cloud-init to complete
"provisioners": [{
"type": "shell",
"inline": [
- "sudo apt-get -qqy update && sudo apt-get install -qqy python python-pip"
+ "while [ ! -f /var/lib/cloud/instance/boot-finished ]; do echo 'Waiting for cloud-init...'; sleep 1; done",
+ "sudo apt-get -qq update && sudo apt-get -qqy install python python-pip"
],
"only": [
"ubuntu-1804"
