-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
34 lines (26 loc) · 1.23 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
30
31
32
33
# -*- 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.hostname = "localhost"
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"]
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", 1024] #1024mb memory
v.customize ["modifyvm", :id, "--ioapic", "on"]
v.gui = true
end
config.vm.provision :shell, :path => "shell/apt-sources.sh"
config.vm.provision :shell, :path => "shell/puppet.sh"
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.module_path = "modules"
puppet.options = "--verbose"
end
end