forked from PagerDuty/pdagent-integrations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
42 lines (29 loc) · 1.21 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
_bento_centos65 = {
"box" => "bento_centos65",
"box_url" => "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.5_chef-provisionerless.box",
}
_bento_ubuntu1004 = {
"box" => "bento_ubuntu1004",
"box_url" => "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-10.04_chef-provisionerless.box",
}
_bento_ubuntu1204 = {
"box" => "bento_ubuntu1204",
"box_url" => "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-12.04_chef-provisionerless.box",
}
vms = {
"agent-minimal-centos65" => _bento_centos65,
"agent-minimal-ubuntu1004" => _bento_ubuntu1004,
"agent-minimal-ubuntu1204" => _bento_ubuntu1204,
}
Vagrant.configure("2") do |conf_outer|
vms.each do |name, conf|
conf_outer.vm.define name do |config|
config.vm.box = conf["box"]
config.vm.box_url = conf["box_url"]
# Public/bridged network so VM can install packages from the internet
config.vm.network :public_network, :bridge => "en0: Wi-Fi (AirPort)"
end # conf_outer.vm.define
end # vms.each
end # Vagrant.configure