-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
32 lines (28 loc) · 1.19 KB
/
Vagrantfile
File metadata and controls
32 lines (28 loc) · 1.19 KB
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
Vagrant.configure('2') do |config|
config.vm.synced_folder '.proxy-cache', '/tmp/proxy-cache', :owner => 'proxy', :create => true
if ['true', '1'].include?(ENV['DISABLE_PROXY'])
config.proxy.https = false
config.proxy.http = false
else
config.proxy.https = 'http://localhost:8123/'
config.proxy.http = 'http://localhost:8123/'
config.proxy.no_proxy = '127.0.0.1,localhost'
end
# This is a an additional disk needed to test lvm
# It will show up as /dev/sdb in the guest OS
config.vm.provider :virtualbox do |vb|
hdd_path = File.expand_path File.dirname(__FILE__) + "/.vagrant/machines/wheezy/virtualbox/hard-disks/additional_disk.vdi"
if !File.exists? hdd_path
vb.customize ['createhd', '--filename', hdd_path, '--size', 500]
end
vb.customize ['storageattach', :id, '--storagectl', 'IDE Controller', '--port', 0, '--type', 'hdd', '--device', 1, '--medium', hdd_path]
end
config.vm.provision 'puppet' do |puppet|
puppet.manifests_path = 'spec'
puppet.manifest_file = 'provision.pp'
puppet.module_path = 'modules'
end
config.vm.define 'wheezy', primary: true do |wheezy|
wheezy.vm.box = 'cargomedia/debian-7-amd64-default'
end
end