Skip to content

Instantly share code, notes, and snippets.

@julianobarbosa
Last active December 29, 2019 14:25
Show Gist options
  • Save julianobarbosa/0c002956cdb99114e648771444f3d1c4 to your computer and use it in GitHub Desktop.
Save julianobarbosa/0c002956cdb99114e648771444f3d1c4 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*- 2 # vi: set ft = ruby : 3 4 VAGRANTFILE_API_VERSION = "2" 5 6 Vagrant.configure( VAGRANTFILE_API_VERSION) do | config | 7 # General Vagrant VM configuration. 8 config.vm.box = "geerlingguy/ centos7" 9 config.ssh.insert_key = false 10 config.vm.synced_folder ".", "/vagrant", disabled: true 11 config.vm.provider :virtualbox do | v | 12 v.memory = 256 13 v.linked_clone = true 14 end 15 16 # Application server 1. 17 config.vm.define "app1" do | app | 18 app.vm.hostname = "orc-app1. test" 19 app.vm.network :private_network, ip: "192.168.60.4" 20 end 21 22 # Application server 2. 23 config.vm.define "app2" do | app | 24 app.vm.hostname = "orc-app2. test" 25 app.vm.network :private_network, ip: "192.168.60.5" 26 end 27 28 # Database server. 29 config.vm.define "db" do | db
db.vm.hostname = "orc-db.test" 31 db.vm.network :private_network, ip: "192.168.60.6" 32 end 33 end This Vagrantfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment