-
Notifications
You must be signed in to change notification settings - Fork 1
/
VagrantfileV5
71 lines (66 loc) · 3 KB
/
VagrantfileV5
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
71
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# allow hostname resolution
config.vm.provision :hosts do |prov|
prov.add_host '192.168.33.5', ['puppet.local']
prov.add_host '192.168.33.6', ['puppetdb.local']
prov.add_host '192.168.33.7', ['postgres-puppetdb.local']
prov.add_host '192.168.33.8', ['puppetexplorer.local']
prov.add_host '192.168.33.9', ['foreman.local']
prov.add_host '192.168.33.10', ['puppetclient-01.local']
prov.add_host '192.168.33.11', ['puppetclient-02.local']
prov.add_host '192.168.33.12', ['puppetclient-03.local']
prov.add_host '192.168.33.13', ['puppetclient-04.local']
prov.add_host '192.168.33.14', ['puppetclient-05.local']
prov.add_host '192.168.33.15', ['puppetclient-06.local']
prov.add_host '192.168.33.16', ['puppetclient-07.local']
prov.add_host '192.168.33.17', ['puppetclient-08.local']
prov.add_host '192.168.33.18', ['puppetclient-09.local']
prov.add_host '192.168.33.19', ['puppetclient-10.local']
end
# puppet master node
config.vm.define "puppet" do |puppet|
puppet.vm.box = "debian/contrib-stretch64"
puppet.vm.box_url = "https://app.vagrantup.com/debian/boxes/contrib-stretch64"
puppet.vm.hostname = "puppet.local"
puppet.vm.network "private_network", ip: "192.168.33.5"
puppet.vm.provision :shell, :path => "installation/prepare-install-deb.sh"
puppet.vm.provision :shell, :path => "installation/install-puppetmaster5-deb.sh"
puppet.vm.synced_folder "puppet5/", "/etc/puppetlabs/code/environments/production", create: true
puppet.vm.provider "virtualbox" do |v|
v.memory = 2250
v.cpus = 1
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
end
# puppetdb postgres database node
config.vm.define "postgres-puppetdb" do |postgres_puppetdb|
postgres_puppetdb.vm.box = "debian/contrib-stretch64"
postgres_puppetdb.vm.box_url = "https://app.vagrantup.com/debian/boxes/contrib-stretch64"
postgres_puppetdb.vm.hostname = "postgres-puppetdb.local"
postgres_puppetdb.vm.network "private_network", ip: "192.168.33.7"
postgres_puppetdb.vm.provision :shell, :path => "installation/prepare-install-deb.sh"
postgres_puppetdb.vm.provision :shell, :path => "installation/install-puppet5-deb.sh"
postgres_puppetdb.vm.provider "virtualbox" do |v|
v.memory = 512
v.cpus = 1
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
end
# puppetdb api node
config.vm.define "puppetdb" do |puppetdb|
puppetdb.vm.box = "debian/contrib-stretch64"
puppetdb.vm.box_url = "https://app.vagrantup.com/debian/boxes/contrib-stretch64"
puppetdb.vm.hostname = "puppetdb.local"
puppetdb.vm.network "private_network", ip: "192.168.33.6"
puppetdb.vm.provision :shell, :path => "installation/prepare-install-deb.sh"
puppetdb.vm.provision :shell, :path => "installation/install-puppet5-deb.sh"
puppetdb.vm.provider "virtualbox" do |v|
v.memory = 512
v.cpus = 1
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
end
end