title: psql: FATAL: role "vagrant" does not exist
body: <p>I created a vagrant instance and I am getting this error every time I try and do <code>psql</code> in the terminal How would Fix it. the error is as states:</p>
  
  <p>psql: FATAL:  role "vagrant" does not exist</p>
  
  <p>I thought vagrant takes care of this? This is my vagrant file:</p>
  
  <pre><code>Vagrant.require_plugin "vagrant-omnibus"
  Vagrant.require_plugin "vagrant-berkshelf"
  
  Vagrant.configure(2) do |config|
  
    # Box config
    config.vm.box = 'precise64'
    config.vm.box_url = 'http://files.vagrantup.com/precise64.box'
  
    # Plugin config
    config.omnibus.chef_version = :latest
    config.berkshelf.enabled = true
  
    # Network config
    config.vm.network :forwarded_port, guest: 3000, host: 3000
  
    # Virtual config
    config.vm.provider(:virtualbox) do |vb|
      vb.customize [
        "modifyvm", :id,
        "--memory", "1024",
        "--cpus",   "4"
      ]
    end
  
    # Provisioner config
    config.vm.provision :chef_solo do |chef|
      chef.add_recipe 'apt'
      chef.add_recipe 'postgresql::client'
      chef.add_recipe 'postgresql::server'
      chef.add_recipe 'build-essential'
      chef.add_recipe 'rvm::system'
      chef.add_recipe 'git'
      chef.json = {
        :postgresql =&gt; {
          :version =&gt; '9.3'
        },
        "postgresql" =&gt; {
          "password" =&gt; {
            "postgres" =&gt; "kshgfi3ret3hihjfbkivtbo3ity835"
          }
        },
        "database" =&gt; {
          "create" =&gt; ["aisisplatform"]
        },
        :git   =&gt; {
          :prefix =&gt; "/usr/local"
        },
        :rvm =&gt; {
          'rubies' =&gt; [ 'ruby-2.1.0' ],
          'default_ruby' =&gt; 'ruby-2.1.0',
          'vagrant' =&gt; {
            :system_chef_solo =&gt; '/usr/bin/chef-solo'
          }
        },
      }
    end
  end
  </code></pre>