title: Vagrant curl connection refused while provisioning
body: <p>I have CouchDB running on a Vagrant box. I want to create the database when provisioning the box. To create the db, I use curl to make a <code>PUT</code> to 127.0.0.1:5984/foo. If I do this manually, no problem. SSH-ing into the Vagrant box and running the command works. Running the command on the host machine works. But if I have the provisioning script run the command, I get this error: <code>curl: (7) Failed to connect to 127.0.0.1 port 5984: Connection refused</code>. What is the problem?</p>
  
  <p>Vagrantfile</p>
  
  <pre><code># -*- mode: ruby -*-
  # vi: set ft=ruby :
  
  Vagrant.configure(2) do |config|
    config.vm.box = "ubuntu/trusty64"
    config.vm.network "forwarded_port", guest: 5984, host: 5984, host_ip: "127.0.0.1"
    config.vm.provision "shell", path: "./scripts/provision_vagrant.sh"
  end
  </code></pre>