When supplying a cloud-init script, Vagrant does not wait for the script to complete before continuing the provisioning process. This causes problems when trying to install packages via cloud-init, especially rsync.
I can see two fixes for this:
Force Vagrant to wait for user_data implementation before continuing
Add a os.wait_for option to wait for n-seconds before continuing.
When supplying a cloud-init script, Vagrant does not wait for the script to complete before continuing the provisioning process. This causes problems when trying to install packages via cloud-init, especially
rsync
.I can see two fixes for this:
user_data
implementation before continuingos.wait_for
option to wait for n-seconds before continuing.