How to show the real file names instead of temporary file names during provision ?

20 views
Skip to first unread message

Valter Henrique

unread,
May 20, 2016, 5:37:34 AM5/20/16
to Vagrant
During the provisioning with Vagrant, we can notice that our script are copied inside the new VM and executed like this:

==> default: Running provisioner: shell...
    default: Running: /tmp/vagrant-shell20160520-26982-1wzrn6l
...

However, to make it easier to debug the provisioning process, I would like to show the real file names, like this:

==> default: Running provisioner: shell...
    default: Running: /tmp/install_activemq

Is that possible ?

Thank you! 
 

Alvaro Miranda Aguilera

unread,
May 21, 2016, 4:51:07 AM5/21/16
to vagra...@googlegroups.com
hello

is not possible when using vagrant to copy the scripts

however if you put all the scripts like this

scripts/first.sh

then you could use inline and run

"bash /vagrant/scripts/first.sh"

Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/4963173b-c11e-4111-94e1-f5a6542be870%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jamie Jackson

unread,
May 22, 2016, 7:50:41 AM5/22/16
to vagra...@googlegroups.com

Also consider using named provisioners, whose names are nicely output.

Reply all
Reply to author
Forward
0 new messages