{"comment":{"created_at":"2011-10-25T16:49:54Z","body":"The issue is the nested `Vagrant::Config.run` statements. I copy/pasted the examples but didn't notice that I should remove the inner `Vagrant::Config.run`","updated_at":"2011-10-25T16:49:54Z","url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/2519657","id":2519657,"user":{"avatar_url":"https://secure.gravatar.com/avatar/cb2b768a5e546b24052ea03334e43676?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"cb2b768a5e546b24052ea03334e43676","url":"https://api.github.com/users/drnic","id":108,"login":"drnic"}},"action":"created","issue":{"number":527,"created_at":"2011-10-18T03:36:17Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Given this Vagrantfile, the 'Hi' is displayed 3 times\r\n\r\n``` ruby\r\n\r\nVagrant::Config.run do |config|\r\n  # All Vagrant configuration is done here. The most common configuration\r\n  # options are documented and commented below. For a complete reference,\r\n  # please see the online documentation at vagrantup.com.\r\n\r\n  # Every Vagrant virtual environment requires a box to build off of.\r\n  config.vm.box = \"base\"\r\n\r\n  Vagrant::Config.run do |config|\r\n    config.vm.provision :shell, :inline => \"echo 'Hi'\"\r\n    # config.vm.provision :shell, :inline => \"cd /vagrant; . bootstrap.sh && ./install\"\r\n  end\r\nend\r\n```\r\n\r\nResults in:\r\n\r\n```\r\n$ vagrant provision\r\n/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.\r\n[default] Running provisioner: Vagrant::Provisioners::Shell...\r\n[default] stdin: is not a tty\r\n[default] Hi\r\n[default] Running provisioner: Vagrant::Provisioners::Shell...\r\n[default] stdin: is not a tty\r\n[default] Hi\r\n[default] Running provisioner: Vagrant::Provisioners::Shell...\r\n[default] stdin: is not a tty\r\n[default] Hi\r\n```","comments":1,"title":"provison :shell - run 3 times instead of 1","updated_at":"2011-10-25T16:49:54Z","url":"https://api.github.com/repos/mitchellh/vagrant/issues/527","id":1935943,"assignee":null,"milestone":null,"closed_at":"2011-10-25T16:49:54Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/cb2b768a5e546b24052ea03334e43676?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"cb2b768a5e546b24052ea03334e43676","url":"https://api.github.com/users/drnic","id":108,"login":"drnic"},"html_url":"https://github.com/mitchellh/vagrant/issues/527","labels":[],"state":"closed"},"legacy":{"issue_id":1935943,"comment_id":2519657}}