mitchellh/vagrant — Issue #527: provison :shell - run 3 times instead of 1
Author: drnic
Created: 2011-10-18 03:36:17+00:00
State: open

Given this Vagrantfile, the 'Hi' is displayed 3 times

``` ruby

Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.

# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "base"

Vagrant::Config.run do |config|
config.vm.provision :shell, :inline => "echo 'Hi'"
# config.vm.provision :shell, :inline => "cd /vagrant; . bootstrap.sh && ./install"
end
end
```

Results in:

```
$ vagrant provision
/Users/drnic/.rvm/gems/ruby-1.9.3-rc1/gems/ffi-1.0.9/lib/ffi/platform.rb:27: Use RbConfig instead of obsolete and deprecated Config.
[default] Running provisioner: Vagrant::Provisioners::Shell...
[default] stdin: is not a tty
[default] Hi
[default] Running provisioner: Vagrant::Provisioners::Shell...
[default] stdin: is not a tty
[default] Hi
[default] Running provisioner: Vagrant::Provisioners::Shell...
[default] stdin: is not a tty
[default] Hi
```