On Wed, Jun 7, 2017 at 12:02 AM, Paul Hoffman <[email protected]>
wrote:
> Vagrant.configure("2") do |config|
> config.vm.box = "main"
> config.vm.provision "shell", path: "run_at_start.sh"
> end
>
Hello
It shouldn't.
So I will suggest.
1. check with a different box, ie hashicorp/precise64
2. The way Vagrant works, you have 3 Vagrantfiles (if present) and they get
merge in memory.
So check if there is a Vagrantfile at:
~/.vagrant.d/Vagrantfile < this is a global one that will be loaded into
all the commands
~/.vagrant.d/boxes/<thebox>/<somepath>/Vagrantfile < this will be used in
all the VMs that use this base box.
Also you can test with:
# config.vm.provision "shell", path: "run_at_start.sh"
config.vm.provision "shell", inline: " echo we run run_at_start.sh"
That will display how many runs will happen.
If this display only one time, then maybe the script is calling himself?
There aren't many options.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/CAHqq0ezUrhwB7bQtOcdVRjP4Bu2FW2KWVdq%2BvwD3GHXqz1_%2BPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.