-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
64 lines (59 loc) · 2.82 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
64
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define :postgres do |postgres|
postgres.vm.box = "centos_6_3_x86_64"
postgres.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210.box"
postgres.vm.hostname = "postgres.vagrant.localdomain"
postgres.vm.network :forwarded_port, guest: 22, host:2226, auto_correct: true
postgres.vm.network :forwarded_port, guest: 5432, host: 5432
postgres.vm.network :private_network, ip: "192.168.10.12"
postgres.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
end
postgres.vm.provision :shell, path: "./scripts/provision_pg.sh"
postgres.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.module_path = "puppet/modules"
puppet.manifest_file = "site.pp"
puppet.options = "--verbose --debug --modulepath /vagrant/puppet/modules"
end
end
config.vm.define :puppetmaster do |puppet_server|
puppet_server.vm.box = "centos_6_3_x86_64"
puppet_server.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210.box"
puppet_server.vm.hostname = "puppet.vagrant.localdomain"
puppet_server.vm.network :forwarded_port, guest: 22, host:2224, auto_correct: true
puppet_server.vm.network :forwarded_port, guest: 8140, host: 8140
puppet_server.vm.network :private_network, ip: "192.168.10.10"
puppet_server.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
end
puppet_server.vm.provision :shell, path: "./scripts/provision_pm.sh"
puppet_server.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.module_path = "puppet/modules"
puppet.manifest_file = "site.pp"
puppet.options = "--verbose --debug --modulepath /vagrant/puppet/modules"
end
end
config.vm.define :puppetdb do |puppetdb|
puppetdb.vm.box = "centos_6_3_x86_64"
puppetdb.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210.box"
puppetdb.vm.hostname = "puppetdb.vagrant.localdomain"
puppetdb.vm.network :forwarded_port, guest: 22, host:2225, auto_correct: true
puppetdb.vm.network :forwarded_port, guest: 8081, host: 8081
puppetdb.vm.network :private_network, ip: "192.168.10.11"
puppetdb.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
end
puppetdb.vm.provision :shell, path: "./scripts/provision_db.sh"
puppetdb.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.module_path = "puppet/modules"
puppet.manifest_file = "site.pp"
puppet.options = "--verbose --debug --modulepath /vagrant/puppet/modules"
end
end
end