-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathVagrantfile
29 lines (22 loc) · 1.22 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu-14.04-amd64"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.network :private_network, ip: "192.168.2.200"
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'" # avoids 'stdin: is not a tty' error.
config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, '--chipset', 'ich9'] # solves kernel panic issue on some host machines
v.customize ["modifyvm", :id, "--name", "localdev-ansible"]
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", 1024] #1024mb memory
v.customize ["modifyvm", :id, "--ioapic", "on"]
v.gui = true
end
#666 otherwise ansible fails on the host files
config.vm.synced_folder '.', '/vagrant', mount_options: ["dmode=666","fmode=666"]
config.vm.provision :shell, :path => "shell/ansible-install.sh"
config.vm.provision :shell, :path => "shell/ansible-run.sh"
end