-
Notifications
You must be signed in to change notification settings - Fork 34
/
Vagrantfile
42 lines (35 loc) · 1.4 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
domain = 'example.com'
Vagrant::Config.run do |config|
config.vm.define :master do |master_config|
master_config.vm.box = 'centos57'
master_config.vm.box_url = 'http://yum.mnxsolutions.com/vagrant/centos57_64.box'
master_config.vm.host_name = "salt.#{domain}"
master_config.vm.network :hostonly, '172.16.42.10'
master_config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'provision/manifests'
puppet.module_path = 'provision/modules'
end
end
config.vm.define :minion1 do |minion_config|
minion_config.vm.box = 'centos57'
minion_config.vm.box_url = 'http://yum.mnxsolutions.com/vagrant/centos57_64.box'
minion_config.vm.host_name = "minion1.#{domain}"
minion_config.vm.network :hostonly, '172.16.42.11'
minion_config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'provision/manifests'
puppet.module_path = 'provision/modules'
end
end
config.vm.define :minion2 do |minion_config|
minion_config.vm.box = 'centos57'
minion_config.vm.box_url = 'http://yum.mnxsolutions.com/vagrant/centos57_64.box'
minion_config.vm.host_name = "minion2.#{domain}"
minion_config.vm.network :hostonly, '172.16.42.12'
minion_config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'provision/manifests'
puppet.module_path = 'provision/modules'
end
end
end