This is a pseudo-cookbook which is responsible for local environment provisioning using Vagrant (powered by Chef + Berkshelf under the hood)
See Basic Setup guide.
Whenever new version is released please execute the following:
git pull
to get latest version ofVagrantfile
from Stashberks update
to update Chef dependenciesvagrant provision
to re-run Chef on the virtual machine
To get into the virtual machine via SSH please execute vagrant ssh
from the
same directory that contains Vagrantfile
. After that please type sudo -i
and press ENTER to switch to root
.
If you prefer to use PuTTY, mRemote or any other connection manager, please log
in as user vagrant
with password vagrant
on localhost
port 2222
. Keep
in mind that the port may be different if you have more than one Vagrant
machine running at the same time. You can check current assignment by executing
vagrant ssh-config
command from directory that contains your Vagrantfile
.
vagrant reload
restarts Vagrant machine and re-applies settings defined inVagrantfile
. It's useful whenever you've changed port forwarding or synced folder configurationvagrant destroy -f
deletes entire virtual machinevagrant reload --provision
restarts virtual machine and re-run Chef afterwardsvagrant suspend
suspends currently running virtual machinevagrant resume
resumes suspended virtual machinevagrant status
show status of virtual machine described inVagrantfile
vagrant halt
halts/turns off virtual machine
Local port (host) is a port exposed on your machine. You can access services
via localhost:<PORT>
.
guest ports refer to ports assigned inside Vagrant's virtual machine.
Port forwarding rules can be easily changed in Vagrantfile
.
- When getting following error on deploying application to local vagrant:
What went wrong: Execution failed for task ':deployDevClearCache'. > java.net.ConnectException: Connection timed out: connect
Runifup eth1
command on vagrant using ssh.
Karol Drazek ([email protected])