Commit 85664b6d authored by Carsten Feuls's avatar Carsten Feuls

Add CentOS

parent 62715c3e
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
N = 3
Vagrant.configure("2") do |config|
(1..N).each do |i|
case i
when 1
vmname = "deploy"
os = "centos/7"
gui = false
memory = "512"
when 2
vmname = "server1"
os = "centos/7"
gui = false
memory = "512"
when 3
vmname = "server2"
os = "centos/7"
gui = false
memory = "512"
end
# set auto_update to false, if you do NOT want to check the correct
# additions version when booting this machine
config.vbguest.auto_update = true
# do NOT download the iso file from a webserver
config.vbguest.no_remote = true
config.vm.define "#{vmname}" do |node|
node.vm.hostname = "#{vmname}"
node.vm.box = "#{os}"
if vmname == "deploy"
node.vm.synced_folder "./ansible", "/home/vagrant/ansible"
end
node.vm.network :private_network, ip: "192.168.222.10#{i+1}", netmask: '255.255.255.0'
node.vm.provider "virtualbox" do |vb|
vb.gui = gui
vb.memory = memory
vb.name = vmname
vb.customize ["modifyvm", :id, "--groups", "/ansible-schulung-centos"]
end
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment