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"
# 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}" = "#{os}"
if vmname == "deploy"
node.vm.synced_folder "./ansible", "/home/vagrant/ansible"
end :private_network, ip: "{i+1}", netmask: ''
node.vm.provider "virtualbox" do |vb|
vb.gui = gui
vb.memory = memory = vmname
vb.customize ["modifyvm", :id, "--groups", "/ansible-schulung-centos"]
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