forked from balderdashy/waterline-adapter-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
56 lines (44 loc) · 2.05 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Vagrant.configure(2) do |config|
config.vm.box = "precise64"
# Host name
config.vm.hostname = "waterline.adapter.tests"
# Network setup
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.network :forwarded_port, guest: 8080, host: 9090
# A private dhcp network is required for NFS to work (on Windows hosts, at least)
# We also use this IP to access the databases
config.vm.network "private_network", ip: "10.55.66.77"
# SSH password
config.ssh.password = "vagrant"
config.ssh.forward_agent = true
# VM box setup (mem, cpus, etc.) when using VirualBox
config.vm.provider :virtualbox do |v, override|
override.vm.box_url = "http://files.vagrantup.com/precise64.box"
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", 3072]
v.customize ["modifyvm", :id, "--cpus", 1]
#Enalbe symlinking in shared folders on Windows hosts.
#NOTE: Windows, must launch CMD as Admin for this to work!
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate//vagrant", "1"]
end
# VM box setup (mem, cpus, etc.) when using VMWare
config.vm.provider :vmware_workstation do |v, override|
override.vm.box_url = "http://files.vagrantup.com/precise64_vmware.box"
v.vmx["memsize"] = "3072"
v.vmx["numvcpus"] = "1"
end
# Mount the project root as the vagrant folder
config.vm.synced_folder ".", "/vagrant", nfs: true
# An ugly fix to squish the "stdin: is not a tty" problem (https://github.com/mitchellh/vagrant/issues/1673)
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
# Ensure Puppet v3 is being used
config.vm.provision :shell, :path => ".puppet/upgrade-puppet-v3.sh"
# Configure guest environment using the Puppet manifest
config.vm.provision :puppet do |puppet|
puppet.manifests_path = ".puppet/manifests"
puppet.module_path = ".puppet/modules"
puppet.manifest_file = "waterline-adapter-tests.pp"
puppet.hiera_config_path = ".puppet/hiera.yaml"
puppet.options = ['--verbose']
end
end