I am attempting to write a provisioning script for vagrant, however, after the following lines, the provisioning script ends early, and does not continue, I am looking for an alternative method or solution to getting the script to continue...

apt-get update
apt-get install blackfire-agent
blackfire-agent -register << ANSWERS

However, it never reaches the next line which is

/etc/init.d/blackfire-agent restart

Any ideas?

  • You would be better served having the register process bundled in a shell script on the virtual machine itself and then execute the shell script from your vagrantfile. Perhaps write the script and store it on the host machine and then map it to the virtual machine through a shared drive. The alternative would be to build a custom "box" on Hashicorp with the script already contained. – Raman Sailopal Jul 20 '18 at 10:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.