Skip to content

Instantly share code, notes, and snippets.

@gcman105
Created April 4, 2015 23:11
Show Gist options
  • Save gcman105/10fe90c12257177fa3f7 to your computer and use it in GitHub Desktop.
Save gcman105/10fe90c12257177fa3f7 to your computer and use it in GitHub Desktop.
vag1
# argument is a set of non-required options.
config.vm.synced_folder "./vagrant_data/html/", "/usr/share/nginx/html/"
# Example for VirtualBox:
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = false
# Customize the amount of memory on the VM:
vb.memory = "1024"
end
# Network
config.vm.network :forwarded_port, host: 4567, guest: 80
# Run the bootstrap shell script on VM
config.vm.provision :shell, path: "bootstrap.sh"
# Provision the VM with ansible
config.vm.provision "ansible" do |ansible|
ansible.playbook = "ansible/playbooks/play.yml"
ansible.sudo = true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment