forked from edneiparmigiani/CICD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
32 lines (26 loc) · 853 Bytes
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
machines = {
"scm" => {"memory"=>"4096", "cpus"=>"1", "ip" => "10" },
"pipeline" => {"memory"=>"4096", "cpus"=>"1", "ip" => "20" },
#"homolog" => {"memory"=>"2048", "cpus"=>"1", "ip" => "30" },
#"production" => {"memory"=>"2048", "cpus"=>"1", "ip" => "40" },
}
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
machines.each do |name,conf|
config.vm.define "#{name}" do |machine|
machine.vm.network "private_network", ip: "192.168.88.#{conf["ip"]}"
machine.vm.hostname = "#{name}.dexter.com.br"
machine.vm.provider "virtualbox" do |vb|
vb.cpus = "#{conf["cpus"]}"
vb.memory = "#{conf["memory"]}"
vb.name = "#{name}"
vb.gui = false
end
end
end
config.vm.provision "shell", inline: <<-SHELL
yum install -y epel-release vim
SHELL
end