Select Git revision
Vagrantfile
Vagrantfile 1.06 KiB
# -*- mode: ruby -*-
# vi: set ft=ruby :
servers=[
{
:hostname => "manager",
:ip => "192.168.33.10",
:box => "centos/8",
:ram => 2048,
:cpu => 2
},
{
:hostname => "agent1",
:ip => "192.168.33.11",
:box => "centos/8",
:ram => 512,
:cpu => 1
},
{
:hostname => "agent2",
:ip => "192.168.33.12",
:box => "centos/8",
:ram => 512,
:cpu => 1
},
{
:hostname => "evidence-collector",
:ip => "192.168.33.13",
:box => "centos/8",
:ram => 1024,
:cpu => 2
},
{
:hostname => "clouditor",
:ip => "192.168.33.14",
:box => "centos/8",
:ram => 512,
:cpu => 1
}
]
Vagrant.configure(2) do |config|
servers.each do |machine|
config.vm.define machine[:hostname] do |node|
node.vm.box = machine[:box]
node.vm.hostname = machine[:hostname]
node.vm.network "private_network", ip: machine[:ip]
node.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", machine[:ram]]
end
end
end
end