Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Petclinic sample vagrant file
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| = "precise64"
config.vm.box_url = "" :private_network, ip: "" "forwarded_port", guest: 8080, host: 8080 # web app
config.vm.provider "virtualbox" do |v|
# 8 generous gigabytes of RAM
v.memory = 8192
# We are running headless
v.customize ["modifyvm", :id, "--vram", "10"]
# Use ansible as our provisioning tool, because ansible
# is pretty awesome
config.vm.provision "ansible" do |ansible|
ansible.playbook = "Ansible/playbook.yml"
ansible.inventory_path = "Ansible/hosts.ini"
ansible.limit = "vagrant"
# Sync the current directory with the host petclinic dir
config.vm.synced_folder ".", "/opt/petclinic"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.