forked from DataDog/datadog-process-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
52 lines (38 loc) · 1.66 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
Vagrant.configure("2") do |config|
vm_mem = ENV["MEM"] || 2048
processes_to_install = ENV["PROCESSES"] || ""
config.vm.define "process-agent-test" do |agent1|
agent1.vm.box = "ubuntu/bionic64"
agent1.vm.hostname = 'process-agent'
agent1.vm.box_url = "ubuntu/bionic64"
agent1.vm.network :private_network, ip: "192.168.56.101"
agent1.vm.synced_folder "../../../..", "/opt/stackstate-go"
agent1.vm.provision :shell, :path => "bootstrap.sh", :privileged => false, :args => processes_to_install
agent1.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", vm_mem]
v.customize ["modifyvm", :id, "--name", "process-agent-test"]
end
end
config.vm.define "process-agent-clean" do |agent2|
agent2.vm.box = "ubuntu/xenial64"
agent2.vm.hostname = 'agent2'
agent2.vm.box_url = "ubuntu/xenial64"
agent2.vm.network :private_network, ip: "192.168.56.102"
agent2.vm.synced_folder "../../../..", "/opt/stackstate-go"
agent2.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", vm_mem]
v.customize ["modifyvm", :id, "--name", "process-agent-clean"]
end
end
config.vm.define "process-agent-win" do |agent3|
agent3.vm.box = "gusztavvargadr/w16s"
agent3.vm.hostname = 'process-agent-win'
agent3.vm.network :private_network, ip: "192.168.56.103"
agent3.vm.provision "shell", path: "bootstrap.ps1"
agent3.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--name", "process-agent-win"]
end
end
end