Skip to content

Instantly share code, notes, and snippets.

@victorboissiere
Created March 31, 2018 20:14
Show Gist options
  • Save victorboissiere/10ac3b42a0e1af204bad69319a2acf19 to your computer and use it in GitHub Desktop.
Save victorboissiere/10ac3b42a0e1af204bad69319a2acf19 to your computer and use it in GitHub Desktop.
Vagrantfile repmgr
Vagrant.configure("2") do |config|
(1..2).each do |n|
config.vm.define "server#{n}" do |define|
define.vm.box = "consumerlab/ubuntu-server-16-04-LTS"
define.ssh.insert_key = false
define.vm.hostname = "server#{n}"
define.vm.network :private_network, ip: "10.0.15.2#{n}"
define.vm.provider "virtualbox" do |node|
node.name = "server#{n}"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment