-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
47 lines (40 loc) · 1.42 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.ssh.insert_key = false
config.vm.define 'salt' do |machine|
machine.vm.hostname = 'salt'
machine.vm.network "private_network", ip: "192.168.33.254"
machine.vm.box = "loacker/centos7.2"
machine.vm.provision "salt" do |salt|
salt.install_master = true
end
end
config.vm.define 'minion1' do |machine|
machine.vm.hostname = 'minion1'
machine.vm.network "private_network", ip: "192.168.33.10"
machine.vm.box = "loacker/centos7.2"
machine.vm.provision "shell", inline: "echo \"192.168.33.254 salt\" >> /etc/hosts"
machine.vm.provision "salt"
end
config.vm.define 'minion2' do |machine|
machine.vm.hostname = 'minion2'
machine.vm.network "private_network", ip: "192.168.33.20"
machine.vm.box = "ubuntu/trusty64"
machine.vm.provision "shell", inline: "echo \"192.168.33.254 salt\" >> /etc/hosts"
machine.vm.provision "salt"
end
config.vm.define 'minion3' do |machine|
machine.vm.hostname = 'minion3'
machine.vm.network "private_network", ip: "192.168.33.30"
machine.vm.box = "ubuntu/trusty64"
machine.vm.provision "shell", inline: "echo \"192.168.33.254 salt\" >> /etc/hosts"
machine.vm.provision "salt"
end
config.vm.provider :libvirt do |domain|
domain.memory = 1024
domain.cpus = 2
domain.nested = true
domain.volume_cache = 'none'
end
end