Created
January 14, 2020 07:37
-
-
Save victorst79/91b8a5b689871df5c3a962c1055d1267 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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