forked from DavidS/dasz-configuration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
63 lines (52 loc) · 2.9 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
57
58
59
60
61
62
63
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.define :puppetmaster do |pm_config|
pm_config.vm.box = "Debian-7.4.0-amd64"
pm_config.vm.box_url = "http://jenkins:8080/view/zetbox.Appliance/job/appliance-develop-build-basebox/lastSuccessfulBuild/artifact/Builder/veewee/Debian-7.4.0-amd64-netboot.box"
pm_config.vm.host_name = "puppetmaster.example.org"
pm_config.vm.forward_port 80, 8080 # foreman
pm_config.vm.forward_port 3140, 3140 # puppetmaster
pm_config.vm.network :hostonly, "192.168.50.4"
# The puppetmaster and friends need oodles of memory
pm_config.vm.customize ["modifyvm", :id, "--memory", 1024]
pm_config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "puppetmaster.pp"
puppet.module_path = [ "modules" ]
puppet.options = [ '--verbose', '--show_diff', '--summarize', '--pluginsync' ]
end
end
config.vm.define :monitor do |pm_config|
pm_config.vm.box = "Debian-7.4.0-amd64"
pm_config.vm.box_url = "http://jenkins:8080/view/zetbox.Appliance/job/appliance-develop-build-basebox/lastSuccessfulBuild/artifact/Builder/veewee/Debian-7.4.0-amd64-netboot.box"
pm_config.vm.host_name = "monitor.example.org"
pm_config.vm.forward_port 80, 8082
pm_config.vm.network :hostonly, "192.168.50.5"
pm_config.vm.provision :shell, :inline => "/vagrant/scripts/register_puppetmaster 192.168.50.4 puppetmaster.example.org"
pm_config.vm.provision :puppet_server do |puppet|
puppet.puppet_server = "puppetmaster.example.org"
puppet.options = [ '--test', '--summarize', '--pluginsync' ]
end
end
config.vm.define :testagent do |pm_config|
pm_config.vm.box = "Debian-7.4.0-amd64"
pm_config.vm.box_url = "http://jenkins:8080/view/zetbox.Appliance/job/appliance-develop-build-basebox/lastSuccessfulBuild/artifact/Builder/veewee/Debian-7.4.0-amd64-netboot.box"
pm_config.vm.host_name = "testagent.example.org"
pm_config.vm.forward_port 80, 8081
pm_config.vm.forward_port 443, 8443
pm_config.vm.network :hostonly, "192.168.50.50"
pm_config.vm.provision :shell, :inline => "/vagrant/scripts/register_puppetmaster 192.168.50.4 puppetmaster.example.org"
pm_config.vm.provision :puppet_server do |puppet|
puppet.puppet_server = "puppetmaster.example.org"
puppet.options = [ '--test', '--summarize', '--pluginsync' ]
end
end
config.vm.define :empty do |pm_config|
pm_config.vm.box = "Debian-7.2.0-amd64"
pm_config.vm.box_url = "http://jenkins:8080/view/zetbox.Appliance/job/appliance-develop-build-basebox/lastSuccessfulBuild/artifact/Builder/veewee/Debian-7.2.0-amd64-netboot.box"
pm_config.vm.host_name = "empty.example.org"
pm_config.vm.network :hostonly, "192.168.50.60"
pm_config.vm.provision :shell, :inline => "/vagrant/scripts/register_puppetmaster 192.168.50.4 puppetmaster.example.org"
end
end