Created
May 25, 2018 21:59
-
-
Save dpfrakes/e3a58a1b4a36857033f7945bf8496683 to your computer and use it in GitHub Desktop.
This file contains 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" | |
# config.vm.box = "ubuntu/xenial64" | |
# config.vm.box = "bento/ubuntu-14.04" | |
config.vm.box = "bento/ubuntu-16.04" | |
# NB: this value is used in ansible playbook and inventory. | |
config.vm.define 'ubuntu-16-vm' | |
config.vm.synced_folder '../', '/home/vagrant/src', nfs: true, mount_options: ['rw', 'vers=3', 'tcp', 'fsc' ,'actimeo=2'] | |
config.vm.synced_folder '../../', '/home/vagrant/external' | |
# config.vm.network :private_network, ip: "10.87.203.92" | |
config.vm.network :forwarded_port, guest: 8000, host: 8000 | |
config.vm.network :forwarded_port, guest: 5432, host: 5432 | |
config.ssh.forward_agent = true | |
config.vm.provider 'virtualbox' do |v| | |
v.memory = 2048 | |
v.cpus = 2 | |
end | |
config.vm.provision 'ansible' do |ansible| | |
ansible.playbook = 'playbook.yml' | |
ansible.inventory_path = 'hosts' | |
ansible.verbose = 'vv' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment