Vagrant provisioning script ends early

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
0
down vote

favorite












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
$5
$6
ANSWERS


However, it never reaches the next line which is



/etc/init.d/blackfire-agent restart


Any ideas?







share|improve this question



















  • 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 at 10:13
















up vote
0
down vote

favorite












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
$5
$6
ANSWERS


However, it never reaches the next line which is



/etc/init.d/blackfire-agent restart


Any ideas?







share|improve this question



















  • 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 at 10:13












up vote
0
down vote

favorite









up vote
0
down vote

favorite











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
$5
$6
ANSWERS


However, it never reaches the next line which is



/etc/init.d/blackfire-agent restart


Any ideas?







share|improve this question











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
$5
$6
ANSWERS


However, it never reaches the next line which is



/etc/init.d/blackfire-agent restart


Any ideas?









share|improve this question










share|improve this question




share|improve this question









asked Jul 20 at 10:03









Jeffrey L. Roberts

174111




174111











  • 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 at 10:13
















  • 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 at 10:13















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 at 10:13




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 at 10:13















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f457405%2fvagrant-provisioning-script-ends-early%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f457405%2fvagrant-provisioning-script-ends-early%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)