Repository navigation
Expand file tree
/
Copy pathVagrantfile
More file actions
70 lines (57 loc) · 1.97 KB
/
Copy pathVagrantfile
File metadata and controls
70 lines (57 loc) · 1.97 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Vagrant.configure('2') do |config|
config.omnibus.chef_version = :latest
config.berkshelf.enabled = true
config.chef_zero.chef_repo_path = 'test/integration'
unless Vagrant.has_plugin?('vagrant-berkshelf')
fail 'Vagrant Berkshelf plugin not installed. Run: vagrant plugin install vagrant-berkshelf'
end
unless Vagrant.has_plugin?('vagrant-omnibus')
fail 'Vagrant Omnibus plugin not installed. Run: vagrant plugin install vagrant-omnibus'
end
unless Vagrant.has_plugin?('vagrant-chef-zero')
fail 'Vagrant Chef Zero plugin not installed. Run: vagrant plugin install vagrant-chef-zero'
end
end
Vagrant::Config.run do |config|
config.vm.provision :chef_client do |chef|
chef.formatter = :doc
chef.add_recipe('apt')
chef.add_recipe('nrpe')
end
config.vm.define :nrpe_ubuntu_1004 do |nagios|
nagios.vm.box = 'chef/ubuntu-10.04'
nagios.vm.host_name = 'nrpe-ubuntu-1004'
end
config.vm.define :nrpe_ubuntu_1204 do |nagios|
nagios.vm.box = 'chef/ubuntu-12.04'
nagios.vm.host_name = 'nrpe-ubuntu-1204'
end
config.vm.define :nrpe_ubuntu_1404 do |nagios|
nagios.vm.box = 'chef/ubuntu-14.04'
nagios.vm.host_name = 'nrpe-ubuntu-1404'
end
config.vm.define :nrpe_debian_76 do |nagios|
nagios.vm.box = 'chef/debian-7.6'
nagios.vm.host_name = 'nrpe-debian-76'
end
config.vm.define :nrpe_freebsd_10 do |nagios|
nagios.vm.box = 'chef/freebsd-10.0'
nagios.vm.host_name = 'nrpe-freebsd-10'
end
config.vm.define :nrpe_centos_510 do |nagios|
nagios.vm.box = 'chef/centos-5.10'
nagios.vm.host_name = 'nrpe-510'
end
config.vm.define :nrpe_centos_65 do |nagios|
nagios.vm.box = 'chef/centos-6.5'
nagios.vm.host_name = 'nrpe-65'
end
config.vm.define :nrpe_centos_70 do |nagios|
nagios.vm.box = 'chef/centos-7.0'
nagios.vm.host_name = 'nrpe-70'
end
config.vm.define :nrpe_fedora_20 do |nagios|
nagios.vm.box = 'chef/fedora-20'
nagios.vm.host_name = 'nrpe-fedora-20'
end
end