Created
December 7, 2015 16:31
-
-
Save chrisblackwell/633ec0b27ec4b228ad87 to your computer and use it in GitHub Desktop.
Base VagrantFile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
# Don't check for updates. We'll handle this through Ansible | |
config.vm.box_check_update = false | |
config.vm.network :private_network, ip: "192.168.10.10" | |
config.vm.network "forwarded_port", guest: 80, host: 8080 | |
config.vm.network "forwarded_port", guest: 443, host: 8443 | |
config.vm.network "forwarded_port", guest: 3306, host: 33060 | |
config.vm.synced_folder "./", "/srv/www", id: "vagrant-root", | |
owner: "vagrant", | |
group: "www-data", | |
mount_options: ["dmode=775,fmode=664"] | |
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 = "2048" | |
end | |
#config.vm.provision "ansible" do |ansible| | |
# ansible.playbook = "ansible/vagrant.yml" | |
# ansible.groups = { | |
# 'vagrant' => ['default'] | |
# } | |
#end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment