Skip to content

Instantly share code, notes, and snippets.

@victorst79
Created January 14, 2020 07:37
Show Gist options
  • Save victorst79/91b8a5b689871df5c3a962c1055d1267 to your computer and use it in GitHub Desktop.
Save victorst79/91b8a5b689871df5c3a962c1055d1267 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
master_ip = "172.16.1.2"
agent_ip = "172.16.1.20"
Vagrant.configure("2") do |config|
# All-in-one instance
config.vm.define "master" do |master|
master.vm.box = "centos/7"
master.vm.network :private_network, ip: "#{master_ip}"
master.vm.provider "virtualbox" do |pmv|
pmv.memory = 4096
pmv.cpus = 4
end
master.vm.hostname = "master"
end
# Agent instance. Remove both =begin and =end to enable it.
config.vm.define "agent" do |agent|
agent.vm.box = "centos/7"
agent.vm.network :private_network, ip: "#{agent_ip}"
agent.vm.provider "virtualbox" do |pmv|
pmv.memory = 512
pmv.cpus = 1
end
agent.vm.hostname = "agent"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment