-
Notifications
You must be signed in to change notification settings - Fork 36
/
Vagrantfile
31 lines (25 loc) · 1.33 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "ubuntu-precise-32bit-vanilla"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
config.vm.box_url = "https://dl.dropboxusercontent.com/u/165709740/boxes/precise32-vanilla.box"
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
config.vm.network :forwarded_port, guest: 3000, host: 3000
# Using a private network seems to be slightly faster, but it's simpler to point a browser to a forwarded port, so I'll leave that as the default.
# config.vm.network :private_network, ip: "192.168.50.4"
config.vm.provision :shell, path: 'puppet/ubuntu.sh'
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.manifest_file = "init.pp"
end
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--natdnsproxy1", "off"]
v.customize ["modifyvm", :id, "--natdnshostresolver1", "off"]
v.customize ["modifyvm", :id, "--memory", "1024", "--ioapic", "on", "--cpus", 2]
end
end