-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathVagrantfile
More file actions
35 lines (25 loc) · 1.06 KB
/
Vagrantfile
File metadata and controls
35 lines (25 loc) · 1.06 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
33
34
35
# -*- 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.hostname = "openldap.github.org"
config.vm.box = "hashicorp/precise64"
config.vm.network "private_network", type: :dhcp
config.ssh.forward_agent = true
# If install the openldap with apt-get failed, you can comment this line.
config.vm.provision "shell", inline: "apt-get update; exec env /vagrant_data/script/install-openldap"
config.vm.synced_folder "../../../..", "/vagrant_data"
config.vm.provider "vmware_fusion" do |vb, override|
override.vm.box = "hashicorp/precise64"
vb.memory = 4596
vb.vmx["displayname"] = "integration tests vm"
vb.vmx["numvcpus"] = "2"
end
config.vm.provider "virtualbox" do |vb, override|
vb.memory = 4096
vb.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"]
vb.customize ["modifyvm", :id, "--chipset", "ich9"]
vb.customize ["modifyvm", :id, "--vram", "16"]
end
end